Index: framework/webtools/template/artifactinfo/ArtifactInfo.ftl =================================================================== --- framework/webtools/template/artifactinfo/ArtifactInfo.ftl (revision 0) +++ framework/webtools/template/artifactinfo/ArtifactInfo.ftl (revision 0) @@ -0,0 +1,439 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#if sessionAttributes.recentArtifactInfoList?has_content> +
+

Recently Viewed Artifacts:

+ <#assign highRef = sessionAttributes.recentArtifactInfoList.size() - 1/> + <#if (highRef > 19)><#assign highRef = 19/> + <#list sessionAttributes.recentArtifactInfoList[0..highRef] as recentArtifactInfo> +
${recentArtifactInfo_index + 1} - ${recentArtifactInfo.type}: <@displayArtifactInfoLink type=recentArtifactInfo.type uniqueId=recentArtifactInfo.uniqueId displayName=recentArtifactInfo.displayName/>
+ +
+ + +<#if !artifactInfo??> + + <#-- add form here to specify artifact info name. --> +
+
+ Search Names/Locations: + + + +
+
+
+
+
Name:
+
Location:
+
Type: + + +
+
+
+ + <#-- add set of ArtifactInfo if there is not a single one identified, with link to each --> + <#if artifactInfoSet?has_content> +
+

Multiple Artifacts Found:

+ <#list artifactInfoSet as curArtifactInfo> +
${curArtifactInfo.getDisplayType()}: <@displayArtifactInfo artifactInfo=curArtifactInfo/>
+ +
+ + +<#else/> + +

${uiLabelMap.WebtoolsArtifactInfo} (${artifactInfo.getDisplayType()}): ${artifactInfo.getDisplayName()}

+ <#if artifactInfo.getLocationURL()??> +
Defined in: ${artifactInfo.getLocationURL()}
+ + + <#if artifactInfo.getType() == "entity"> +
All Entity Data
+

Entity Fields

+ + <#list artifactInfo.modelEntity.getFieldsUnmodifiable() as modelField> + + +
${modelField.getName()}<#if modelField.getIsPk()>*${modelField.getType()}${modelField.getDescription()!}
+ +
+

Entities Related (One)

+ <#list artifactInfo.getEntitiesRelatedOne()! as entityArtifactInfo> + <@displayEntityArtifactInfo entityArtifactInfo=entityArtifactInfo/> + +
+ +
+

Entities Related (Many)

+ <#list artifactInfo.getEntitiesRelatedMany()! as entityArtifactInfo> + <@displayEntityArtifactInfo entityArtifactInfo=entityArtifactInfo/> + +
+ +
+

Services Using This Entity

+ <#list artifactInfo.getServicesUsingEntity()! as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + +
+ +
+

Forms Using This Entity

+ <#list artifactInfo.getFormsUsingEntity()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Screens Using This Entity

+ <#list artifactInfo.getScreensUsingEntity()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ + <#elseif artifactInfo.getType() == "service"/> +

Service Info

+
 Description: ${artifactInfo.modelService.description}
+
 Run (${artifactInfo.modelService.engineName}): ${artifactInfo.modelService.location} :: ${artifactInfo.modelService.invoke}
+
 Impl Location: ${artifactInfo.getImplementationLocationURL()!}
+

Service Parameters

+ + + <#list artifactInfo.modelService.getAllParamNames() as paramName> + <#assign modelParam = artifactInfo.modelService.getParam(paramName)/> + + +
NameTypeOptionalModeEntity.field
${modelParam.getName()}<#if modelParam.getInternal()> (internal)${modelParam.getType()}<#if modelParam.isOptional()>optional<#else/>required${modelParam.getMode()}${modelParam.getEntityName()!}.${modelParam.getFieldName()!}
+ +
+

Entities Used By This Service

+ <#list artifactInfo.getEntitiesUsedByService()! as entityArtifactInfo> + <@displayEntityArtifactInfo entityArtifactInfo=entityArtifactInfo/> + +
+ +
+

Services Calling This Service

+ <#list artifactInfo.getServicesCallingService()! as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + +
+ +
+

Services Called By This Service

+ <#list artifactInfo.getServicesCalledByService()! as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + +
+ +
+

Service ECA Rules Triggered By This Service

+ <#list artifactInfo.getServiceEcaRulesTriggeredByService()! as serviceEcaArtifactInfo> + <@displayServiceEcaArtifactInfo serviceEcaArtifactInfo=serviceEcaArtifactInfo/> + +
+ +
+

Service ECA Rules Calling This Service

+ <#list artifactInfo.getServiceEcaRulesCallingService()! as serviceEcaArtifactInfo> + <@displayServiceEcaArtifactInfo serviceEcaArtifactInfo=serviceEcaArtifactInfo/> + +
+ +
+

Forms Calling This Service

+ <#list artifactInfo.getFormsCallingService()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Forms Based On This Service

+ <#list artifactInfo.getFormsBasedOnService()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Screens Calling This Service

+ <#list artifactInfo.getScreensCallingService()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ +
+

Requests with Events That Call This Service

+ <#list artifactInfo.getRequestsWithEventCallingService()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ + <#elseif artifactInfo.getType() == "form"/> +
+

Form Extended by This Form

+ <#if artifactInfo.getFormThisFormExtends()??> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=artifactInfo.getFormThisFormExtends()/> + +
+ +
+

Entities Used in This Form

+ <#list artifactInfo.getEntitiesUsedInForm()! as entityArtifactInfo> + <@displayEntityArtifactInfo entityArtifactInfo=entityArtifactInfo/> + +
+ +
+

Services Used in This Form

+ <#list artifactInfo.getServicesUsedInForm()! as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + +
+ +
+

Forms Extending This Form

+ <#list artifactInfo.getFormsExtendingThisForm()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Screens Including This Form

+ <#list artifactInfo.getScreensIncludingThisForm()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ +
+

Controller Requests That Are Linked to in This Form

+ <#list artifactInfo.getRequestsLinkedToInForm()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+
+

Controller Requests That Are Targeted By This Form

+ <#list artifactInfo.getRequestsTargetedByForm()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ + <#elseif artifactInfo.getType() == "screen"/> +
+

Entities Used in This Screen

+ <#list artifactInfo.getEntitiesUsedInScreen()! as entityArtifactInfo> + <@displayEntityArtifactInfo entityArtifactInfo=entityArtifactInfo/> + +
+ +
+

Services Used in This Screen

+ <#list artifactInfo.getServicesUsedInScreen()! as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + +
+ +
+

Forms Included in This Screen

+ <#list artifactInfo.getFormsIncludedInScreen()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Screens Include in This Screen

+ <#list artifactInfo.getScreensIncludedInScreen()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ +
+

Screens Including This Screen

+ <#list artifactInfo.getScreensIncludingThisScreen()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ +
+

Controller Requests That Are Linked to in This Screen

+ <#list artifactInfo.getRequestsLinkedToInScreen()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ +
+

Controller Views Referring to This Screen

+ <#list artifactInfo.getViewsReferringToScreen()! as controllerViewArtifactInfo> + <@displayControllerViewArtifactInfo controllerViewArtifactInfo=controllerViewArtifactInfo/> + +
+ + <#elseif artifactInfo.getType() == "request"/> + <#if artifactInfo.getServiceCalledByRequestEvent()??> +
+

Service Called by Request Event

+ <@displayServiceArtifactInfo serviceArtifactInfo=artifactInfo.getServiceCalledByRequestEvent()/> +
+ + +
+

Forms Referring to This Request

+ <#list artifactInfo.getFormInfosReferringToRequest()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+
+

Forms Targeting This Request

+ <#list artifactInfo.getFormInfosTargetingRequest()! as formWidgetArtifactInfo> + <@displayFormWidgetArtifactInfo formWidgetArtifactInfo=formWidgetArtifactInfo/> + +
+ +
+

Screens Referring to This Request

+ <#list artifactInfo.getScreenInfosReferringToRequest()! as screenWidgetArtifactInfo> + <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=screenWidgetArtifactInfo/> + +
+ +
+

Requests That Are Responses to This Request

+ <#list artifactInfo.getRequestsThatAreResponsesToThisRequest()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ +
+

Requests That This Request is a Responses To

+ <#list artifactInfo.getRequestsThatThisRequestIsResponsTo()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ +
+

Controller Views That Are Responses to This Request

+ <#list artifactInfo.getViewsThatAreResponsesToThisRequest()! as controllerViewArtifactInfo> + <@displayControllerViewArtifactInfo controllerViewArtifactInfo=controllerViewArtifactInfo/> + +
+ + <#elseif artifactInfo.getType() == "view"/> +
+

Requests That This View is a Responses To

+ <#list artifactInfo.getRequestsThatThisViewIsResponseTo()! as controllerRequestArtifactInfo> + <@displayControllerRequestArtifactInfo controllerRequestArtifactInfo=controllerRequestArtifactInfo/> + +
+ + <#if artifactInfo.getScreenCalledByThisView()??> +
+

Screen Called by This View

+ <@displayScreenWidgetArtifactInfo screenWidgetArtifactInfo=artifactInfo.getScreenCalledByThisView()/> +
+ + + + + +<#-- ==================== MACROS ===================== --> +<#macro displayEntityArtifactInfo entityArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=entityArtifactInfo/>
+ + +<#macro displayServiceArtifactInfo serviceArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=serviceArtifactInfo/>
+ + +<#macro displayServiceEcaArtifactInfo serviceEcaArtifactInfo> +

Service ECA Rule: ${serviceEcaArtifactInfo.getDisplayPrefixedName()}

+ <#if serviceEcaArtifactInfo.serviceEcaRule.getEcaConditionList()?has_content> +

ECA Rule Conditions

+ <#list serviceEcaArtifactInfo.serviceEcaRule.getEcaConditionList() as ecaCondition> +
 - ${ecaCondition.getShortDisplayDescription(true)}
+ + + <#if serviceEcaArtifactInfo.serviceEcaRule.getEcaActionList()?has_content> +

ECA Rule Actions

+ + <#list serviceEcaArtifactInfo.serviceEcaRule.getEcaActionList() as ecaAction> + + + + + +
${ecaAction.getServiceName()}${ecaAction.getServiceMode()}<#if ecaAction.isPersist()>-persisted
+ + + <#-- leaving this out, will show service links for actions + <#if serviceEcaArtifactInfo.getServicesCalledByServiceEcaActions()?has_content> +

Services Called By Service ECA Actions

+ <#list serviceEcaArtifactInfo.getServicesCalledByServiceEcaActions() as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + + + --> + <#if serviceEcaArtifactInfo.getServicesTriggeringServiceEca()?has_content> +

Services Triggering Service ECA

+ <#list serviceEcaArtifactInfo.getServicesTriggeringServiceEca() as serviceArtifactInfo> + <@displayServiceArtifactInfo serviceArtifactInfo=serviceArtifactInfo/> + + + + +<#macro displayFormWidgetArtifactInfo formWidgetArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=formWidgetArtifactInfo/>
+ + +<#macro displayScreenWidgetArtifactInfo screenWidgetArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=screenWidgetArtifactInfo/>
+ + +<#macro displayControllerRequestArtifactInfo controllerRequestArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=controllerRequestArtifactInfo/>
+ + +<#macro displayControllerViewArtifactInfo controllerViewArtifactInfo> +
 - <@displayArtifactInfo artifactInfo=controllerViewArtifactInfo/>
+ + +<#macro displayArtifactInfo artifactInfo> + <@displayArtifactInfoLink type=artifactInfo.getType() uniqueId=artifactInfo.getUniqueId() displayName=artifactInfo.getDisplayName()/> + + +<#macro displayArtifactInfoLink type uniqueId displayName> +${displayName} + Index: framework/webtools/template/cert/viewbrowsercerts.ftl =================================================================== --- framework/webtools/template/cert/viewbrowsercerts.ftl (revision 0) +++ framework/webtools/template/cert/viewbrowsercerts.ftl (revision 0) @@ -0,0 +1,66 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#assign isSecure = request.isSecure()/> +<#assign clientCerts = request.getAttribute("javax.servlet.request.X509Certificate")!/> +<#if (!clientCerts?has_content)> + <#assign clientCerts = request.getAttribute("javax.net.ssl.peer_certificates")!/> + + +
+
+

${uiLabelMap.WebtoolsCertsX509}

+
+ <#if (isSecure)> + <#if (clientCerts?has_content)> + + <#list clientCerts as cert> + <#assign certString = Static["org.ofbiz.base.util.KeyStoreUtil"].certToString(cert)!> + <#if (certString?has_content)> + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsCertsCert}${cert.getType()} ${cert.getSubjectX500Principal()}
${uiLabelMap.WebtoolsCertsSerialNum}:${cert.getSerialNumber().toString(16)}
  + +
+ <#else> +
${uiLabelMap.WebtoolsCertsNotFound}.
+ + <#else> +
${uiLabelMap.WebtoolsCertsRequiresSSL}.
+ +
\ No newline at end of file Index: framework/webtools/template/datafile/viewdatafile.ftl =================================================================== --- framework/webtools/template/datafile/viewdatafile.ftl (revision 0) +++ framework/webtools/template/datafile/viewdatafile.ftl (revision 0) @@ -0,0 +1,152 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +

${uiLabelMap.WebtoolsDataFileMessage1}.

+
+ <#if security.hasPermission("DATAFILE_MAINT", session)> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsDataDefinitionFileName}${uiLabelMap.WebtoolsDataIsUrl} checked="checked" />
${uiLabelMap.WebtoolsDataDefinitionName} + <#if definitionNames?has_content> + + <#else> + + +  
${uiLabelMap.WebtoolsDataFileName}${uiLabelMap.WebtoolsDataIsUrl} checked="checked" />
${uiLabelMap.WebtoolsDataSaveToFile} 
${uiLabelMap.WebtoolsDataSaveToXml} 
  
+
+ + <#if messages?has_content> +
+

${uiLabelMap.CommonFollowingOccurred}:

+
+ <#list messages as message> +

${message}

+ +
+ + + <#macro displayrecords records> + <#assign lastRecordName = null> + <#list records as record> + <#assign modelRecord = record.getModelRecord()> + <#-- if record is different than the last displayed, make a new table and header row --> + <#if !modelRecord.name.equals(lastRecordName)> + <#if lastRecordName??> +
+ + + + + <#if (modelRecord.parentName)?has_content> + + + + +
Record: ${modelRecord.name}Parent: ${modelRecord.parentName}${modelRecord.description}
+ + + <#list modelRecord.fields as modelField> + + + + <#assign lastRecordName = modelRecord.name> + + + + <#list modelRecord.fields as modelField> + <#assign value = record.get(modelField.name)> + <#if value?has_content> + + <#else> + + + + + <#if (record.getChildRecords())?has_content> + <@displayrecords records = record.getChildRecords()/> + + +
${modelField.name}
${value}${modelField.defaultValue}
+ + + <#if dataFile?has_content && modelDataFile?has_content && (!parameters.ENTITYXML_FILE_SAVE?has_content || parameters.ENTITYXML_FILE_SAVE.length() == 0) && (parameters.DATAFILE_SAVE == null || parameters.DATAFILE_SAVE.length() == 0)> +
+ + + + + + + + + + + + + + + + + + + + + +
NameType-CodeSenderReceiverRecord LengthSeparator Style
${modelDataFile.name}${modelDataFile.typeCode}${modelDataFile.sender}${modelDataFile.receiver}${modelDataFile.recordLength}${modelDataFile.separatorStyle}
Description${modelDataFile.description}
+
+ <@displayrecords records = dataFile.getRecords()/> + + <#else> +

You do not have permission to use this page (DATAFILE_MAINT needed)

+ Index: framework/webtools/template/entity/CheckDb.ftl =================================================================== --- framework/webtools/template/entity/CheckDb.ftl (revision 0) +++ framework/webtools/template/entity/CheckDb.ftl (revision 0) @@ -0,0 +1,120 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +

${uiLabelMap.WebtoolsCheckUpdateDatabase}

+
+ + ${uiLabelMap.WebtoolsGroupName}: +   ${uiLabelMap.WebtoolsPks} +   ${uiLabelMap.WebtoolsFks} +   ${uiLabelMap.WebtoolsFkIdx} +   ${uiLabelMap.WebtoolsAddMissing} +   ${uiLabelMap.WebtoolsRepairColumnSizes} + +
+

${uiLabelMap.WebtoolsNoteUseAtYourOwnRisk}

+ +

${uiLabelMap.WebtoolsRemoveAllTables}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + ${uiLabelMap.WebtoolsEntityName}: + +
+

${uiLabelMap.WebtoolsCreateRemoveAllPrimaryKeys}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+

${uiLabelMap.WebtoolsCreateRemovePrimaryKey}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + ${uiLabelMap.WebtoolsEntityName}: + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + ${uiLabelMap.WebtoolsEntityName}: + +
+

${uiLabelMap.WebtoolsCreateRemoveAllDeclaredIndices}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeyIndices}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeys}

+

${uiLabelMap.WebtoolsNoteForeighKeysMayAlsoBeCreated}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+

${uiLabelMap.WebtoolsUpdateCharacterSetAndCollate}

+
+ + ${uiLabelMap.WebtoolsGroupName}: + +
+<#if miters?has_content> +
+ + Index: framework/webtools/template/entity/ConnectionPoolStatus.ftl =================================================================== --- framework/webtools/template/entity/ConnectionPoolStatus.ftl (revision 0) +++ framework/webtools/template/entity/ConnectionPoolStatus.ftl (revision 0) @@ -0,0 +1,56 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +

Connection Pool Status

+ +<#assign groups = delegator.getModelGroupReader().getGroupNames(delegator.getDelegatorName())!/> + + + + + + + + + + + + + <#assign alt_row = false> + <#if (groups?has_content)> + <#list groups as group> + <#assign helper = delegator.getGroupHelperName(group)!/> + <#if (helper?has_content)> + <#assign dataSourceInfo = Static["org.ofbiz.entity.connection.DBCPConnectionFactory"].getDataSourceInfo(helper)!/> + <#if (dataSourceInfo?has_content)> + + + + + + + + + + + + + + + +
Helper NameNum ActiveNum IdleNum TotalMax ActiveMax IdleMin IdleMin Evictable Idle TimeMax Wait
${helper}${dataSourceInfo.poolNumActive!}${dataSourceInfo.poolNumIdle!}${dataSourceInfo.poolNumTotal!}${dataSourceInfo.poolMaxActive!}${dataSourceInfo.poolMaxIdle!}${dataSourceInfo.poolMinIdle!}${dataSourceInfo.poolMinEvictableIdleTimeMillis!}${dataSourceInfo.poolMaxWait!}
Index: framework/webtools/template/entity/EntityExportAll.ftl =================================================================== --- framework/webtools/template/entity/EntityExportAll.ftl (revision 0) +++ framework/webtools/template/entity/EntityExportAll.ftl (revision 0) @@ -0,0 +1,36 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
${uiLabelMap.WebtoolsExportFromDataSource}
+

${uiLabelMap.WebtoolsXMLExportInfo}

+<#if results?has_content> +
+

${uiLabelMap.WebtoolsResults}:

+ <#list results as result> +

${result}

+ + +
+
+ ${uiLabelMap.WebtoolsOutputDirectory}:
+ ${uiLabelMap.CommonFromDate}: <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+ ${uiLabelMap.WebtoolsTimeoutSeconds}:
+
+ +
Index: framework/webtools/template/entity/EntityImport.ftl =================================================================== --- framework/webtools/template/entity/EntityImport.ftl (revision 0) +++ framework/webtools/template/entity/EntityImport.ftl (revision 0) @@ -0,0 +1,48 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
${uiLabelMap.WebtoolsImportToDataSource}
+

${uiLabelMap.WebtoolsXMLImportInfo}

+
+ +
+ ${uiLabelMap.WebtoolsAbsoluteFileNameOrUrl}:
+
+ ${uiLabelMap.WebtoolsAbsoluteFTLFilename}:
+
+ checked="checked"/>${uiLabelMap.WebtoolsIsURL}
+ checked="checked"/>${uiLabelMap.WebtoolsMostlyInserts}
+ checked="checked"/>${uiLabelMap.WebtoolsMaintainTimestamps}
+ checked="checked"/>${uiLabelMap.WebtoolsCreateDummyFks}
+ checked="checked"/>${uiLabelMap.WebtoolsCheckDataOnly}
+ ${uiLabelMap.WebtoolsTimeoutSeconds}:
+
+
+
+ ${uiLabelMap.WebtoolsCompleteXMLDocument}:
+ +
+
+ <#if messages??> +
+

${uiLabelMap.WebtoolsResults}:

+ <#list messages as message> +

${message}

+ + Index: framework/webtools/template/entity/EntityImportDir.ftl =================================================================== --- framework/webtools/template/entity/EntityImportDir.ftl (revision 0) +++ framework/webtools/template/entity/EntityImportDir.ftl (revision 0) @@ -0,0 +1,42 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
${uiLabelMap.WebtoolsImportToDataSource}
+

${uiLabelMap.WebtoolsXMLImportInfo}

+
+ +
+ ${uiLabelMap.WebtoolsAbsolutePath}:
+
+ checked="checked"/>${uiLabelMap.WebtoolsMostlyInserts}
+ checked="checked"/>${uiLabelMap.WebtoolsMaintainTimestamps}
+ checked="checked"/>${uiLabelMap.WebtoolsCreateDummyFks}
+ checked="checked"/>${uiLabelMap.WebtoolsDeleteFiles}
+ checked="checked"/>${uiLabelMap.WebtoolsCheckDataOnly}
+ ${uiLabelMap.WebtoolsTimeoutSeconds}:
+ ${uiLabelMap.WebtoolsPause}:
+
+
+ <#if messages??> +
+

${uiLabelMap.WebtoolsResults}:

+ <#list messages as message> +

${message}

+ + Index: framework/webtools/template/entity/EntityImportReaders.ftl =================================================================== --- framework/webtools/template/entity/EntityImportReaders.ftl (revision 0) +++ framework/webtools/template/entity/EntityImportReaders.ftl (revision 0) @@ -0,0 +1,39 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
${uiLabelMap.WebtoolsImportToDataSource}
+

${uiLabelMap.WebtoolsXMLImportInfo}

+
+
+ Enter Readers (comma separated, no spaces; from entityengine.xml and ofbiz-component.xml files; common ones include seed,ext,demo):
+
+ checked="checked" value="true"/>${uiLabelMap.WebtoolsMostlyInserts}
+ checked="checked" value="true"/>${uiLabelMap.WebtoolsMaintainTimestamps}
+ checked="checked" value="true"/>${uiLabelMap.WebtoolsCreateDummyFks}
+ checked="checked" value="true"/>${uiLabelMap.WebtoolsCheckDataOnly}
+ ${uiLabelMap.WebtoolsTimeoutSeconds}:
+
+
+ <#if messages??> +
+

${uiLabelMap.WebtoolsResults}:

+ <#list messages as message> +

${message}

+ + Index: framework/webtools/template/entity/EntityMaint.ftl =================================================================== --- framework/webtools/template/entity/EntityMaint.ftl (revision 0) +++ framework/webtools/template/entity/EntityMaint.ftl (revision 0) @@ -0,0 +1,110 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+ ${uiLabelMap.CommonGroup}: + + ${uiLabelMap.WebtoolsEntityName}: + + +
+
+ <#assign firstChar = "x"> + <#assign anchor=""> + <#assign alt_row = false> + <#assign right_col = false> +
+ <#list entitiesList as entity> + <#if entity.entityName?substring(0, 1) != firstChar> + <#assign firstChar = entity.entityName?substring(0, 1)> + ${firstChar}  + + +
+
+
+ +
+
+
+ <#assign firstChar = "*"> + + + + + + + + <#list entitiesList as entity> + <#if entity.entityName?substring(0, 1) != firstChar> + <#if right_col> + + <#assign right_col = false> + <#assign alt_row = !alt_row> + + <#if firstChar != "*"> + class="alternate-row"> + <#assign alt_row = !alt_row> + + <#assign firstChar = entity.entityName?substring(0, 1)> + <#assign anchor="id=\"Entity_${firstChar}\""> + + <#if !right_col> + class="alternate-row"> + + + ${anchor}>${entity.entityName}<#if entity.viewEntity == 'Y'> (${uiLabelMap.WebtoolsEntityView}) + <#assign anchor=""> + + <#if right_col> + + <#assign alt_row = !alt_row> + + <#assign right_col = !right_col> + + <#if right_col> + + +
${uiLabelMap.WebtoolsEntityName} ${uiLabelMap.WebtoolsEntityName} 
  
 
+ <#if entity.viewEntity == 'Y'> + <#if entity.entityPermissionView == 'Y'> + ${uiLabelMap.WebtoolsReln} + ${uiLabelMap.WebtoolsFind} + ${uiLabelMap.WebtoolsAll} + + <#else> + <#if entity.entityPermissionCreate == 'Y'> + ${uiLabelMap.WebtoolsCreate} + + <#if entity.entityPermissionView == 'Y'> + ${uiLabelMap.WebtoolsReln} + ${uiLabelMap.WebtoolsFind} + ${uiLabelMap.WebtoolsAll} + + +
  
+
+
Index: framework/webtools/template/entity/EntityRef.ftl =================================================================== --- framework/webtools/template/entity/EntityRef.ftl (revision 0) +++ framework/webtools/template/entity/EntityRef.ftl (revision 0) @@ -0,0 +1,32 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + + + ${uiLabelMap.WebtoolsEntityReferenceChart} + + + + + + + <h2>${uiLabelMap.CommonFrameAlert1}</h2> + <p>${uiLabelMap.CommonFrameAlert2}</p> + <br /> + + Index: framework/webtools/template/entity/EntityRefList.ftl =================================================================== --- framework/webtools/template/entity/EntityRefList.ftl (revision 0) +++ framework/webtools/template/entity/EntityRefList.ftl (revision 0) @@ -0,0 +1,77 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#assign docLangAttr = locale.toString()?replace("_", "-")> +<#assign langDir = "ltr"> +<#if "ar.iw"?contains(docLangAttr?substring(0, 2))> + <#assign langDir = "rtl"> + + + + ${uiLabelMap.WebtoolsEntityReference} + + + +
+ <#if !forstatic> + ${uiLabelMap.WebtoolsPopupWebToolsMain}
+ ${uiLabelMap.WebtoolsEntityReferenceMainPage}
+ ${uiLabelMap.WebtoolsCheckUpdateDatabase} +
+ <#-- want to leave these out because they are only working so-so, and cause people more problems that they solve, IMHO + Generate Entity Model XML (all in one)
+ Save Entity Model XML to Files
+ --> + <#-- this is not working now anyway... + Generate Entity Group XML
+ Save Entity Group XML to File
+ --> + ${uiLabelMap.WebtoolsInduceModelXMLFromDatabase}
+ + <#if packageNames?has_content> +
+
${uiLabelMap.WebtoolsEntityPackages}
+ <#list packageNames as packageName> + <#if forstatic> + ${packageName}
+ <#else> + ${packageName}
+ + + + <#if entitiesList?has_content> +
+
${uiLabelMap.WebtoolsEntitiesAlpha}
+ <#list entitiesList as entity> + <#if forstatic> + ${entity.entityName} + <#else> + ${entity.entityName} + +
+ + +
+ + Index: framework/webtools/template/entity/EntityRefMain.ftl =================================================================== --- framework/webtools/template/entity/EntityRefMain.ftl (revision 0) +++ framework/webtools/template/entity/EntityRefMain.ftl (revision 0) @@ -0,0 +1,178 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#assign docLangAttr = locale.toString()?replace("_", "-")> +<#assign langDir = "ltr"> +<#if "ar.iw"?contains(docLangAttr?substring(0, 2))> + <#assign langDir = "rtl"> + +<#assign forstatic = false/> +<#if (parameters.forstatic)?default("false") == "true"> + <#assign forstatic = true/> + + + + ${uiLabelMap.WebtoolsEntityReference} + + + +
${uiLabelMap.WebtoolsEntityReferenceChart}
+ ${numberOfEntities} ${uiLabelMap.WebtoolsTotalEntities} +
+ <#assign numberShowed = 0> + <#list packagesList as package> +
${package.packageName}

+ <#list package.entitiesList as entity> + + + + + + + + + + + + <#list entity.javaNameList as javaName> + + + + + <#if javaName.javaType?has_content> + + + <#else> + + + + + + <#if entity.relationsList?has_content> + + + + + + + + <#list entity.relationsList as relation> + + + + + + + <#if entity.indexList?has_content> + + + + + + + + <#list entity.indexList as index> + + + + + + +
+
+ ${uiLabelMap.WebtoolsEntity}: ${entity.entityName} + <#if entity.plainTableName?has_content> | ${uiLabelMap.WebtoolsTable}: ${entity.plainTableName} +
+
${entity.title}  + <#if !forstatic> + [${uiLabelMap.WebtoolsViewData}] + + <#if !forstatic> + [${uiLabelMap.WebtoolsArtifactInfo}] + +
+ <#if entity.description?has_content && + !entity.description.equalsIgnoreCase("NONE") && + !entity.description.equalsIgnoreCase("")> +
${entity.description}
+ + <#if entity.location?has_content> +
${entity.location}
+ +
${uiLabelMap.WebtoolsJavaName}${uiLabelMap.WebtoolsDbName}${uiLabelMap.WebtoolsFieldType}${uiLabelMap.WebtoolsJavaType}${uiLabelMap.WebtoolsSqlType}
+
${javaName.name}
+ <#if javaName.description?has_content> +
${javaName.description}
+ + <#if javaName.encrypted> +
[${uiLabelMap.WebtoolsEncrypted}]
+ +
${javaName.colName}${javaName.type}${javaName.javaType}${javaName.sqlType}${uiLabelMap.WebtoolsNotFound}${uiLabelMap.WebtoolsNotFound}

${uiLabelMap.WebtoolsRelation}${uiLabelMap.WebtoolsRelationType}
+ <#if relation.title?has_content>${relation.title} ${relation.relEntity} + <#if relation.fkName?has_content> +
${uiLabelMap.WebtoolsFKName}: ${relation.fkName} + + <#if relation.description?has_content> +
${relation.description} + +
+ ${relation.type}: + <#if relation.length == 3> +   + + <#if relation.keysList?has_content> + <#list relation.keysList as keyList> +
  ${keyList.row})  + <#if keyList.fieldName == keyList.relFieldName> + ${keyList.fieldName} + <#else> + ${keyList.fieldName} : ${keyList.relFieldName} + + + +

${uiLabelMap.WebtoolsIndexName}${uiLabelMap.WebtoolsIndexFieldList}
${index.name} + <#list index.fieldNameList as fieldName> + ${fieldName} + +
+
+ <#assign numberShowed = numberShowed + 1> + + +
+

+ ${uiLabelMap.WebtoolsEntityDisplayed}: ${numberShowed} +
+ + Index: framework/webtools/template/entity/EntityRefReport.fo.ftl =================================================================== --- framework/webtools/template/entity/EntityRefReport.fo.ftl (revision 0) +++ framework/webtools/template/entity/EntityRefReport.fo.ftl (revision 0) @@ -0,0 +1,208 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#escape x as x?xml> + + + + + + + + + + <#-- bookmark section --> + + <#list packagesList as package> + <#assign packageName = package.packageName/> + + ${packageName} + <#list package.entitiesList as entity> + + ${entity.entityName} + + + + + + + <#-- report section --> + <#list packagesList as package> + <#assign packageName = package.packageName/> + <#assign newPackage = true/> + <#list package.entitiesList as entity> + + + <#-- header --> + + + ${uiLabelMap.WebtoolsEntityReference} + + + ${packageName} + + + ${entity.entityName}<#if entity.plainTableName?has_content> | ${uiLabelMap.WebtoolsTable}: ${entity.plainTableName} + + <#if entity.description?has_content && !entity.description.equalsIgnoreCase("NONE")> + ${entity.description} + + <#if entity.location?has_content> + ${entity.location} + + + + <#-- footer --> + + Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation + ${uiLabelMap.CommonPage} + + + <#-- body --> + + <#if newPackage> + + <#assign newPackage = false/> + + + <#-- entity fields --> + + + + + + + + + ${uiLabelMap.WebtoolsJavaName} + ${uiLabelMap.WebtoolsDbName} + ${uiLabelMap.WebtoolsFieldType} + ${uiLabelMap.WebtoolsJavaType} + ${uiLabelMap.WebtoolsSqlType} + + + + <#list entity.javaNameList as javaName> + + + ${javaName.name}<#if javaName.isPk> (pk) + <#if javaName.description?has_content> + ${javaName.description} + + <#if javaName.encrypted> + [${uiLabelMap.WebtoolsEncrypted}] + + + + ${javaName.colName} + + + ${javaName.type} + + + ${javaName.javaType?default(uiLabelMap.WebtoolsNotFound)} + + + ${javaName.sqlType?default(uiLabelMap.WebtoolsNotFound)} + + + + + + <#if entity.relationsList?has_content> + <#-- entity relations --> + + + + + + ${uiLabelMap.WebtoolsRelation} + ${uiLabelMap.WebtoolsRelationType} + + + + <#list entity.relationsList as relation> + + + <#if relation.title?has_content>${relation.title} ${relation.relEntity} + <#if relation.fkName?has_content> + ${uiLabelMap.WebtoolsFKName}: ${relation.fkName} + + <#if relation.description?has_content> + ${relation.description} + + + + + ${relation.type}: + <#if relation.keysList?has_content> + <#list relation.keysList as keyList> + ${keyList.row} + <#if keyList.fieldName == keyList.relFieldName> + ${keyList.fieldName} + <#else> + ${keyList.fieldName} : ${keyList.relFieldName} + + + + + + + + + + + <#if entity.indexList?has_content> + <#-- entity indexes --> + + + + + + ${uiLabelMap.WebtoolsIndexName} + ${uiLabelMap.WebtoolsIndexFieldList} + + + + <#list entity.indexList as index> + + + ${index.name} + + + + <#list index.fieldNameList as fieldName> + ${fieldName} + + + + + + + + + + + + + + Index: framework/webtools/template/entity/EntitySQLProcessor.ftl =================================================================== --- framework/webtools/template/entity/EntitySQLProcessor.ftl (revision 0) +++ framework/webtools/template/entity/EntitySQLProcessor.ftl (revision 0) @@ -0,0 +1,53 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+ +
+
+
+ <#if resultMessage?has_content> + ${resultMessage} +
+ + + <#if columns?has_content> + + + <#list columns as column> + + + + <#if records?has_content> + <#assign alt_row = false> + <#list records as record> + class="alternate-row" > + <#list record as field> + + + + <#assign alt_row = !alt_row> + + +
${column}
${field!}
+ +
+
Index: framework/webtools/template/entity/FindGeneric.ftl =================================================================== --- framework/webtools/template/entity/FindGeneric.ftl (revision 0) +++ framework/webtools/template/entity/FindGeneric.ftl (revision 0) @@ -0,0 +1,42 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ + + + + + + + + + <#list fieldList as field> + + + + + + + + + + + +
${uiLabelMap.WebtoolsFieldName}${uiLabelMap.WebtoolsPk}${uiLabelMap.WebtoolsFieldType} 
${field.name}<#if field.isPk == 'Y'>*${field.javaType}, ${field.sqlType}

${uiLabelMap.WebtoolsToFindAll} ${entityName}, ${uiLabelMap.WebtoolsLeaveAllEntriesBlank}

+
Index: framework/webtools/template/entity/ListGeneric.ftl =================================================================== --- framework/webtools/template/entity/ListGeneric.ftl (revision 0) +++ framework/webtools/template/entity/ListGeneric.ftl (revision 0) @@ -0,0 +1,57 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + <#if (arraySize > 0)> + <#assign commonUrl="FindGeneric?${curFindString}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default(\"false\")}&"/> + <@htmlTemplate.nextPrev commonUrl=commonUrl listSize=arraySize viewSize=viewSize viewIndex=viewIndex highIndex=highIndex commonDisplaying=commonDisplaying/> + + + + + <#list fieldList as field> + + + + <#if resultPartialList?has_content> + <#assign alt_row = false> + <#list records as record> + class="alternate-row"> + + <#list fieldList as field> + + <#-- --> + + + <#assign alt_row = !alt_row> + + <#else> + + + + +
 ${field.name}
+ ${uiLabelMap.CommonView} + <#if hasDeletePermission == 'Y'> + ${uiLabelMap.CommonDelete} + + ${Static["org.ofbiz.base.util.UtilFormatOut"].makeString(record.fields.get(field.name))}${record.fields.get(field.name)!?string}
+

${uiLabelMap.WebtoolsNoEntityRecordsFound} ${entityName}.

+
+ <#if (arraySize > 0)> + <@htmlTemplate.nextPrev commonUrl=commonUrl listSize=arraySize viewSize=viewSize viewIndex=viewIndex highIndex=highIndex /> + Index: framework/webtools/template/entity/ModelGroupWriter.jsp =================================================================== --- framework/webtools/template/entity/ModelGroupWriter.jsp (revision 0) +++ framework/webtools/template/entity/ModelGroupWriter.jsp (revision 0) @@ -0,0 +1,124 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*, java.io.*, java.net.*, org.ofbiz.base.config.*, org.ofbiz.base.util.*, org.ofbiz.entity.*, org.ofbiz.entity.config.*, org.ofbiz.entity.model.*" %><% + + if("true-not-working".equals(request.getParameter("savetofile"))) { + if(security.hasPermission("ENTITY_MAINT", session)) { + //save to the file specified in the ModelReader config + String controlPath=(String)request.getAttribute("_CONTROL_PATH_"); + String serverRootUrl=(String)request.getAttribute("_SERVER_ROOT_URL_"); + ModelGroupReader modelGroupReader = delegator.getModelGroupReader(); + + ResourceHandler resourceHandler = null; //modelGroupReader.entityGroupResourceHandler; + + if (resourceHandler.isFileResource()) { + String filename = resourceHandler.getFullLocation(); + + java.net.URL url = new java.net.URL(serverRootUrl + controlPath + "/view/ModelGroupWriter"); + HashMap params = new HashMap(); + HttpClient httpClient = new HttpClient(url, params); + InputStream in = httpClient.getStream(); + + File newFile = new File(filename); + FileWriter newFileWriter = new FileWriter(newFile); + + BufferedReader post = new BufferedReader(new InputStreamReader(in)); + String line = null; + while((line = post.readLine()) != null) { + newFileWriter.write(line); + newFileWriter.write("\n"); + } + newFileWriter.close(); + %> + If you aren't seeing any exceptions, XML was written successfully to: + <%=filename%> + from the URL: + <%=url.toString()%> + <% + } else { + %>ERROR: This entity group information did not come from a file, so it is not being saved. It came from <%=resourceHandler.toString()%><% + } + } else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% + } + } else { +%> + + +<% + ModelReader reader = delegator.getModelReader(); + ModelGroupReader groupReader = delegator.getModelGroupReader(); + + Map packages = new HashMap(); + TreeSet packageNames = new TreeSet(); + + //put the entityNames TreeSets in a HashMap by packageName + Collection ec = reader.getEntityNames(); + + Iterator ecIter = ec.iterator(); + while(ecIter.hasNext()) { + String eName = (String)ecIter.next(); + ModelEntity ent = reader.getModelEntity(eName); + TreeSet entities = (TreeSet) packages.get(ent.getPackageName()); + if(entities == null) { + entities = new TreeSet(); + packages.put(ent.getPackageName(), entities); + packageNames.add(ent.getPackageName()); + } + entities.add(eName); + }%> +<% + Iterator piter = packageNames.iterator(); + while(piter.hasNext()) { + String pName = (String) piter.next(); + TreeSet entities = (TreeSet) packages.get(pName); +%> + + + + +<% + Iterator i = entities.iterator(); + while (i.hasNext()) { + String entityName = (String)i.next(); + String groupName = groupReader.getEntityGroupName(entityName, delegator.getDelegatorName()); + if (groupName == null) groupName = ""; +%> + <% + } + }%> + +<%}%> Index: framework/webtools/template/entity/ModelInduceFromDb.jsp =================================================================== --- framework/webtools/template/entity/ModelInduceFromDb.jsp (revision 0) +++ framework/webtools/template/entity/ModelInduceFromDb.jsp (revision 0) @@ -0,0 +1,154 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page import="java.util.*, java.io.*, java.net.*, java.sql.*, org.ofbiz.base.util.*, org.ofbiz.entity.*, org.ofbiz.entity.model.*, org.ofbiz.entity.datasource.*" %><% + +if(security.hasPermission("ENTITY_MAINT", session)) { + String helperName = request.getParameter("helperName"); + if(helperName == null || helperName.length() <= 0) { + response.setContentType("text/html"); +%> + + + + + ModelInduceFromDB + + +
Put the name of the Datasource in the EntityEngine.xml to induce from:
+
+ + +
+It's the datasource name. It doesn't need to be associated with a + delegator, just defined in entityengine.xml.
+ Use the browser to view the source and see the entities that were created. + + + + +<% + } else { + response.setContentType("text/xml"); + Collection messages = new LinkedList(); + GenericDAO dao = GenericDAO.getGenericDAO(new GenericHelperInfo(null, helperName)); + List newEntList = dao.induceModelFromDb(messages); + + if(messages.size() > 0) { +%> +ERRORS: +<% + Iterator mIter = messages.iterator(); + while(mIter.hasNext()) { +%> +<%=(String)mIter.next()%><% + } + } + if(newEntList != null) { + String title = "Entity of the Apache OFBiz Component"; + String description = "None"; + String copyright = "Copyright 2001-2012 The Apache Software Foundation"; + String author = "None"; + String version = "1.0"; +%> + + + + + + + <%=title%> + <%=description%> + <%=copyright%> + <%=author%> + <%=version%> + + + + + + + + + +<% + Iterator ecIter = newEntList.iterator(); + while(ecIter.hasNext()) { + ModelEntity entity = (ModelEntity) ecIter.next(); +%> + table-name="<%=entity.getPlainTableName()%>"<%}%> + package-name="<%=entity.getPackageName()%>"<%if(entity.getDependentOn().length() > 0){%> + dependent-on="<%=entity.getDependentOn()%>"<%}%><%if(!title.equals(entity.getTitle())){%> + title="<%=entity.getTitle()%>"<%}%><%if(!copyright.equals(entity.getCopyright())){%> + copyright="<%=entity.getCopyright()%>"<%}%><%if(!author.equals(entity.getAuthor())){%> + author="<%=entity.getAuthor()%>"<%}%><%if(!version.equals(entity.getVersion())){%> + version="<%=entity.getVersion()%>"<%}%>><%if(!description.equals(entity.getDescription())){%> + <%=entity.getDescription()%><%}%><% + Iterator fieldIterator = entity.getFieldsIterator(); + while (fieldIterator.hasNext()) { + ModelField field = fieldIterator.next();%> + col-name="<%=field.getColName()%>"<%}%> type="<%=field.getType()%>"><% + for (String valName : field.getValidators()) { + %><% + }%><% + } + Iterator pkIterator = entity.getPksIterator(); + while (pkIterator.hasNext()) { + ModelField field = pkIterator.next();%> + <% + } + if (entity.getRelationsSize() > 0) { + for (int r = 0; r < entity.getRelationsSize(); r++) { + ModelRelation relation = entity.getRelation(r);%> + 0){%> title="<%=relation.getTitle()%>"<%} + %> rel-entity-name="<%=relation.getRelEntityName()%>"><%for(ModelKeyMap keyMap : relation.getKeyMaps()){ %> + rel-field-name="<%=keyMap.getRelFieldName()%>"<%}%> /><%}%> + <% + } + }%> + <% + }%> + +<% + } + } + } +else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +%> Index: framework/webtools/template/entity/ModelWriter.jsp =================================================================== --- framework/webtools/template/entity/ModelWriter.jsp (revision 0) +++ framework/webtools/template/entity/ModelWriter.jsp (revision 0) @@ -0,0 +1,249 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*, java.io.*, java.net.*, org.ofbiz.base.config.*, org.ofbiz.base.util.*, org.ofbiz.entity.*, org.ofbiz.entity.config.*, org.ofbiz.entity.model.*" %><% +try { +if (security.hasPermission("ENTITY_MAINT", session) || request.getParameter("originalLoaderName") != null) { + if ("true".equals(request.getParameter("savetofile"))) { + //save to the file specified in the ModelReader config + String controlPath = (String) request.getAttribute("_CONTROL_PATH_"); + String serverRootUrl = (String) request.getAttribute("_SERVER_ROOT_URL_"); + ModelReader modelReader = delegator.getModelReader(); + + Iterator handlerIter = modelReader.getResourceHandlerEntitiesKeyIterator(); + while (handlerIter.hasNext()) { + ResourceHandler resourceHandler = (ResourceHandler) handlerIter.next(); + if (resourceHandler.isFileResource()) { + String filename = resourceHandler.getFullLocation(); + + java.net.URL url = new java.net.URL(serverRootUrl + controlPath + "/ModelWriter"); + HashMap params = new HashMap(); + params.put("originalLoaderName", resourceHandler.getLoaderName()); + params.put("originalLocation", resourceHandler.getLocation()); + HttpClient httpClient = new HttpClient(url, params); + InputStream in = httpClient.getStream(); + + File newFile = new File(filename); + FileWriter newFileWriter = new FileWriter(newFile); + + BufferedReader post = new BufferedReader(new InputStreamReader(in)); + String line = null; + while ((line = post.readLine()) != null) { + newFileWriter.write(line); + newFileWriter.write("\n"); + } + newFileWriter.close(); + %> + If you aren't seeing any exceptions, XML was written successfully to: + <%=filename%> + from the URL: + <%=url.toString()%>?originalLoaderName=<%=resourceHandler.getLoaderName()%>&originalLocation=<%=resourceHandler.getLocation()%> + <% + } else { + %>Cannot write to location <%=resourceHandler.getLocation()%> from + loader <%=resourceHandler.getLoaderName()%>, it is not a file.<% + } + } + } else { + String title = "Entity of the Apache OFBiz Component"; + String description = "None"; + String copyright = "Copyright 2001-2012 The Apache Software Foundation"; + String author = "None"; + String version = "1.0"; +%> + + +<% + //GenericDelegator delegator = GenericHelperFactory.getDefaultHelper(); + ModelReader reader = delegator.getModelReader(); + Map packages = new HashMap(); + TreeSet packageNames = new TreeSet(); + + // ignore fields names + List ignoredFields = UtilMisc.toList("lastUpdatedStamp", "lastUpdatedTxStamp", "createdStamp", "createdTxStamp"); + //put the entityNames TreeSets in a HashMap by packageName + Collection ec = null; + + String originalLoaderName = request.getParameter("originalLoaderName"); + String originalLocation = request.getParameter("originalLocation"); + if (originalLoaderName != null && originalLocation != null) { + ec = reader.getResourceHandlerEntities(new MainResourceHandler(EntityConfig.ENTITY_ENGINE_XML_FILENAME, originalLoaderName, originalLocation)); + } else { + ec = reader.getEntityNames(); + } + + Iterator ecIter = ec.iterator(); + while(ecIter.hasNext()) { + String eName = (String) ecIter.next(); + ModelEntity ent = reader.getModelEntity(eName); + TreeSet entities = (TreeSet) packages.get(ent.getPackageName()); + if (entities == null) { + entities = new TreeSet(); + packages.put(ent.getPackageName(), entities); + packageNames.add(ent.getPackageName()); + } + entities.add(eName); + }%> + + + + + <%=title%> + <%=description%> + <%=copyright%> + <%=author%> + <%=version%> + + + + <% + Iterator packageNameIter = packageNames.iterator(); + while(packageNameIter.hasNext()) { + String pName = (String)packageNameIter.next();%> + <% + }%> + +<% + Iterator piter = packageNames.iterator(); + while(piter.hasNext()) { + String pName = (String)piter.next(); + TreeSet entities = (TreeSet)packages.get(pName); +%> + + + + +<% + Iterator i = entities.iterator(); + while (i.hasNext()) { + String entityName = (String)i.next(); + ModelEntity entity = reader.getModelEntity(entityName); + if (entity instanceof ModelViewEntity) { + ModelViewEntity viewEntity = (ModelViewEntity)entity; +%> + 0) {%> + dependent-on="<%=entity.getDependentOn()%>"<%}%><%if (entity.getNeverCache()) {%> + never-cache="true"<%}%><%if (!title.equals(entity.getTitle())) {%> + title="<%=entity.getTitle()%>"<%}%><%if (!copyright.equals(entity.getCopyright())) {%> + copyright="<%=entity.getCopyright()%>"<%}%><%if (!author.equals(entity.getAuthor())) {%> + author="<%=entity.getAuthor()%>"<%}%><%if (!version.equals(entity.getVersion())) {%> + version="<%=entity.getVersion()%>"<%}%>><%if (!description.equals(entity.getDescription())) {%> + <%=entity.getDescription()%><%}%><% + Iterator meIter = viewEntity.getAllModelMemberEntities().iterator(); + while(meIter.hasNext()) { + ModelViewEntity.ModelMemberEntity modelMemberEntity = (ModelViewEntity.ModelMemberEntity) meIter.next(); +%> + <% + } + for (int y = 0; y < viewEntity.getAliasesSize(); y++) { + ModelViewEntity.ModelAlias alias = viewEntity.getAlias(y);%> + field="<%=alias.getField()%>"<%}%><%if (alias.getIsPk() != null) { + %> prim-key="<%=alias.getIsPk().toString()%>"<%}%><%if (alias.getGroupBy()) { + %> group-by="true"<%}%><%if (UtilValidate.isNotEmpty(alias.getFunction())) { + %> function="<%=alias.getFunction()%>"<%}%>/><% + } + for (int r = 0; r < viewEntity.getViewLinksSize(); r++) { + ModelViewEntity.ModelViewLink viewLink = viewEntity.getViewLink(r);%> + rel-optional="true"<%}%>><%for (int km = 0; km < viewLink.getKeyMapsSize(); km++){ ModelKeyMap keyMap = viewLink.getKeyMap(km);%> + rel-field-name="<%=keyMap.getRelFieldName()%>"<%}%>/><%}%> + <% + } + if (entity.getRelationsSize() > 0) { + for (int r = 0; r < entity.getRelationsSize(); r++) { + ModelRelation relation = entity.getRelation(r);%> + 0) {%> title="<%=relation.getTitle()%>"<%} + %> rel-entity-name="<%=relation.getRelEntityName()%>"><%for (int km = 0; km < relation.getKeyMapsSize(); km++){ ModelKeyMap keyMap = relation.getKeyMap(km);%> + rel-field-name="<%=keyMap.getRelFieldName()%>"<%}%>/><%}%> + <% + } + }%> + <% + } + else { +%> + table-name="<%=entity.getPlainTableName()%>"<%}%> + package-name="<%=entity.getPackageName()%>"<%if (entity.getDependentOn().length() > 0) {%> + dependent-on="<%=entity.getDependentOn()%>"<%}%><%if (entity.getDoLock()) {%> + enable-lock="true"<%}%><%if (entity.getNeverCache()) {%> + never-cache="true"<%}%><%if (!title.equals(entity.getTitle())) {%> + title="<%=entity.getTitle()%>"<%}%><%if (!copyright.equals(entity.getCopyright())) {%> + copyright="<%=entity.getCopyright()%>"<%}%><%if (!author.equals(entity.getAuthor())) {%> + author="<%=entity.getAuthor()%>"<%}%><%if (!version.equals(entity.getVersion())) {%> + version="<%=entity.getVersion()%>"<%}%>><%if (!description.equals(entity.getDescription())) {%> + <%=entity.getDescription()%><%}%><% + Iterator fieldIterator = entity.getFieldsIterator(); + while (fieldIterator.hasNext()) { + ModelField field = fieldIterator.next(); + if (!ignoredFields.contains(field.getName())) {%> + col-name="<%=field.getColName()%>"<%}%> type="<%=field.getType()%>"><% + for (int v = 0; v<% + }%><% + }} + Iterator pkIterator = entity.getPksIterator(); + while (pkIterator.hasNext()) { + ModelField field = pkIterator.next();%> + <% + } + if (entity.getRelationsSize() > 0) { + for (int r=0; r + 0) {%> fk-name="<%=relation.getFkName()%>"<%} + %><%if (relation.getTitle().length() > 0) {%> title="<%=relation.getTitle()%>"<%} + %> rel-entity-name="<%=relation.getRelEntityName()%>"><%for (int km = 0; km < relation.getKeyMapsSize(); km++){ ModelKeyMap keyMap = relation.getKeyMap(km);%> + rel-field-name="<%=keyMap.getRelFieldName()%>"<%}%>/><%}%> + <% + } + }%> + <% + } + } + }%> + +<% + } +} else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +} catch (Exception e) { + Debug.log(e); +} +%> Index: framework/webtools/template/entity/ProgramExport.ftl =================================================================== --- framework/webtools/template/entity/ProgramExport.ftl (revision 0) +++ framework/webtools/template/entity/ProgramExport.ftl (revision 0) @@ -0,0 +1,36 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + + +
+
+
+

${uiLabelMap.WebtoolsEntityXMLRepresentation}

+
+
+

+ <#if xmlDoc?has_content> + ${Static["org.ofbiz.base.util.UtilXml"].writeXmlDocument(xmlDoc)?replace("\n", "
")?replace(" ", "    ")} + +

+
+
+
+
+ Index: framework/webtools/template/entity/ViewGeneric.ftl =================================================================== --- framework/webtools/template/entity/ViewGeneric.ftl (revision 0) +++ framework/webtools/template/entity/ViewGeneric.ftl (revision 0) @@ -0,0 +1,281 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#assign enableEdit = parameters.enableEdit?default("false")> + + +
+
+
    +
  • ${uiLabelMap.WebtoolsViewValue}
  • +
+
+
+
+

${uiLabelMap.WebtoolsForEntity}: ${entityName}

+

${uiLabelMap.WebtoolsWithPk}: ${findByPk}

+
+
+ ${uiLabelMap.WebtoolsBackToFindScreen} + <#if enableEdit = "false"> + <#if hasCreatePermission> + ${uiLabelMap.CommonCreateNew} + ${uiLabelMap.CommonEdit} + + <#if value?has_content> + <#if hasDeletePermission> + ${uiLabelMap.WebtoolsDeleteThisValue} + + + +
+ <#if value?has_content> +
+

${uiLabelMap.CommonView}

+ +
+
+ +
+
+

${uiLabelMap.WebtoolsEntityCurrentValue}

+
+ <#if value?has_content> + <#assign alt_row = false> + + <#list fields as field> + class="alternate-row"> + + + + <#assign alt_row = !alt_row> + +
${field.name}${field.value}
+ <#else> + ${uiLabelMap.WebtoolsSpecifiedEntity1} ${entityName} ${uiLabelMap.WebtoolsSpecifiedEntity2}. + +
+ <#if enableEdit = "true"> + <#if hasUpdatePermission || hasCreatePermission> + <#assign alt_row = false> +
+
+

${uiLabelMap.WebtoolsEntityEditValue}

+
+ <#if pkNotFound> +

${uiLabelMap.WebtoolsEntityName} ${entityName} ${uiLabelMap.WebtoolsWithPk} ${findByPk} ${uiLabelMap.WebtoolsSpecifiedEntity2}.

+ +
+ <#assign showFields = true> + <#assign alt_row = false> + + <#if value?has_content> + <#if hasUpdatePermission> + <#if newFieldPkList?has_content> + + <#list newFieldPkList as field> + class="alternate-row"> + + + + <#assign alt_row = !alt_row> + + + <#else> + ${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName} + <#assign showFields = false> + + <#else> + <#if hasCreatePermission> + <#if newFieldPkList?has_content> +

${uiLabelMap.WebtoolsYouMayCreateAnEntity}

+ + <#list newFieldPkList as field> + class="alternate-row"> + + + + <#assign alt_row = !alt_row> + + + <#else> +

${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName}

+ <#assign showFields = false> + + + <#if showFields> + <#if newFieldNoPkList?has_content> + <#assign alt_row = false> + <#list newFieldNoPkList as field> + class="alternate-row"> + + + + <#assign alt_row = !alt_row> + + <#if value?has_content> + <#assign button = "${uiLabelMap.CommonUpdate}"> + <#else> + <#assign button = "${uiLabelMap.CommonCreate}"> + + class="alternate-row"> + + + + + +
${field.name} + + ${field.value} +
${field.name} + <#if field.fieldType == 'DateTime'> + ${uiLabelMap.CommonFormatDateTime}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + <#elseif field.fieldType == 'Date'> + ${uiLabelMap.CommonFormatDate}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + <#elseif field.fieldType == 'Time'> + ${uiLabelMap.CommonFormatTime} + <#elseif field.fieldType == 'Integer'> + + <#elseif field.fieldType == 'Long'> + + <#elseif field.fieldType == 'Double'> + + <#elseif field.fieldType == 'Float'> + + <#elseif field.fieldType == 'StringOneRow'> + + <#elseif field.fieldType == 'String'> + + <#elseif field.fieldType == 'Textarea'> + + <#else> + + +
${field.name} + <#if field.fieldType == 'DateTime'> + ${uiLabelMap.CommonFormatDateTime}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + <#elseif field.fieldType == 'Date'> + ${uiLabelMap.CommonFormatDate}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> + <#elseif field.fieldType == 'Time'> + ${uiLabelMap.CommonFormatTime} + <#elseif field.fieldType == 'Integer'> + + <#elseif field.fieldType == 'Long'> + + <#elseif field.fieldType == 'Double'> + + <#elseif field.fieldType == 'Float'> + + <#elseif field.fieldType == 'StringOneRow'> + + <#elseif field.fieldType == 'String'> + + <#elseif field.fieldType == 'Textarea'> + + <#else> + + +
  + + ${uiLabelMap.CommonCancel} +
+
+
+ + + <#if relationFieldList?has_content> + <#list relationFieldList as relation> +
+
+ +
+
+ <#if relation.valueRelated?has_content> + + <#assign alt_row = false> + class="alternate-row"> + + + + <#list relation.relatedFieldsList as relatedField> + class="alternate-row"> + + + + <#assign alt_row = !alt_row> + +
${uiLabelMap.WebtoolsPk}${relation.valueRelatedPk}
${relatedField.name}${relatedField.value}
+ <#else> + <#if "one" = relation.type> + ${uiLabelMap.WebtoolsNoValueFoundFor} ${relation.title}${relation.relatedTable}. + <#else/> + ${uiLabelMap.CommonFind} + + +
+ + +
+
+
+

${uiLabelMap.WebtoolsEntityXMLRepresentation}

+
+
+

+ <#if value?has_content> + <#assign valueXmlDoc = Static["org.ofbiz.entity.GenericValue"].makeXmlDocument([value]) /> + ${Static["org.ofbiz.base.util.UtilXml"].writeXmlDocument(valueXmlDoc)?replace("\n", "
")?replace(" ", "    ")} + +

+
+
+
+
Index: framework/webtools/template/entity/ViewRelations.ftl =================================================================== --- framework/webtools/template/entity/ViewRelations.ftl (revision 0) +++ framework/webtools/template/entity/ViewRelations.ftl (revision 0) @@ -0,0 +1,63 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+
    +
  • ${uiLabelMap.WebtoolsRelations}
  • +
+
+
+
+ <#if hasViewPermission> +
+

${uiLabelMap.WebtoolsForEntity}: ${entityName}

+
+ +
+ + + + + + + + + <#assign alt_row = false> + <#list relations as relation> + class="alternate-row"> + + + + + + + <#assign alt_row = !alt_row> + +
${uiLabelMap.WebtoolsTitle}${uiLabelMap.WebtoolsRelatedEntity}${uiLabelMap.WebtoolsRelationType}${uiLabelMap.WebtoolsFKName}${uiLabelMap.WebtoolsFieldsList}
${relation.title}${relation.relEntityName}${relation.type}${relation.fkName} + <#list relation.relFields as field> + ${field.fieldName} -> ${field.relFieldName}
+ +
+ <#else> +

${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName}.

+ +
+
Index: framework/webtools/template/entity/dataMySql.jsp =================================================================== --- framework/webtools/template/entity/dataMySql.jsp (revision 0) +++ framework/webtools/template/entity/dataMySql.jsp (revision 0) @@ -0,0 +1,43 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*" %><%@ page import="org.ofbiz.entity.*" %><%@ page import="org.ofbiz.entity.model.*" %><% +if(security.hasPermission("ENTITY_MAINT", session)) { + ModelReader reader = delegator.getModelReader(); + Collection ec = reader.getEntityNames(); + TreeSet entities = new TreeSet(ec); + Iterator classNamesIterator = entities.iterator(); + while(classNamesIterator != null && classNamesIterator.hasNext()) { ModelEntity entity = reader.getModelEntity((String)classNamesIterator.next());%> +INSERT INTO SECURITY_PERMISSION (PERMISSION_ID,DESCRIPTION) VALUES ('<%=entity.getPlainTableName()%>_ADMIN','Permission to Administer a <%=entity.getEntityName()%> entity.'); +INSERT INTO SECURITY_PERMISSION (PERMISSION_ID,DESCRIPTION) VALUES ('<%=entity.getPlainTableName()%>_VIEW','Permission to View a <%=entity.getEntityName()%> entity.'); +INSERT INTO SECURITY_PERMISSION (PERMISSION_ID,DESCRIPTION) VALUES ('<%=entity.getPlainTableName()%>_CREATE','Permission to Create a <%=entity.getEntityName()%> entity.'); +INSERT INTO SECURITY_PERMISSION (PERMISSION_ID,DESCRIPTION) VALUES ('<%=entity.getPlainTableName()%>_UPDATE','Permission to Update a <%=entity.getEntityName()%> entity.'); +INSERT INTO SECURITY_PERMISSION (PERMISSION_ID,DESCRIPTION) VALUES ('<%=entity.getPlainTableName()%>_DELETE','Permission to Delete a <%=entity.getEntityName()%> entity.'); + +INSERT INTO SECURITY_GROUP_PERMISSION (GROUP_ID,PERMISSION_ID) VALUES ('FULLADMIN','<%=entity.getPlainTableName()%>_ADMIN'); +INSERT INTO SECURITY_GROUP_PERMISSION (GROUP_ID,PERMISSION_ID) VALUES ('FLEXADMIN','<%=entity.getPlainTableName()%>_VIEW'); +INSERT INTO SECURITY_GROUP_PERMISSION (GROUP_ID,PERMISSION_ID) VALUES ('FLEXADMIN','<%=entity.getPlainTableName()%>_CREATE'); +INSERT INTO SECURITY_GROUP_PERMISSION (GROUP_ID,PERMISSION_ID) VALUES ('FLEXADMIN','<%=entity.getPlainTableName()%>_UPDATE'); +INSERT INTO SECURITY_GROUP_PERMISSION (GROUP_ID,PERMISSION_ID) VALUES ('FLEXADMIN','<%=entity.getPlainTableName()%>_DELETE'); +<% + } +} +else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +%> Index: framework/webtools/template/entity/droptablesMySql.jsp =================================================================== --- framework/webtools/template/entity/droptablesMySql.jsp (revision 0) +++ framework/webtools/template/entity/droptablesMySql.jsp (revision 0) @@ -0,0 +1,32 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*" %><%@ page import="org.ofbiz.entity.*" %><%@ page import="org.ofbiz.entity.model.*" %><% +if(security.hasPermission("ENTITY_MAINT", session)) { + ModelReader reader = delegator.getModelReader(); + Collection ec = reader.getEntityNames(); + TreeSet entities = new TreeSet(ec); + Iterator classNamesIterator = entities.iterator(); + while(classNamesIterator != null && classNamesIterator.hasNext()) { ModelEntity entity = reader.getModelEntity((String)classNamesIterator.next());%> +DROP TABLE IF EXISTS <%=entity.getPlainTableName()%>;<%}%> +<% +} +else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +%> Index: framework/webtools/template/entity/droptablesplain.jsp =================================================================== --- framework/webtools/template/entity/droptablesplain.jsp (revision 0) +++ framework/webtools/template/entity/droptablesplain.jsp (revision 0) @@ -0,0 +1,32 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*" %><%@ page import="org.ofbiz.entity.*" %><%@ page import="org.ofbiz.entity.model.*" %><% +if(security.hasPermission("ENTITY_MAINT", session)) { + ModelReader reader = delegator.getModelReader(); + Collection ec = reader.getEntityNames(); + TreeSet entities = new TreeSet(ec); + Iterator classNamesIterator = entities.iterator(); + while(classNamesIterator != null && classNamesIterator.hasNext()) { ModelEntity entity = reader.getModelEntity((String)classNamesIterator.next());%> +DROP TABLE <%=entity.getPlainTableName()%>;<%}%> +<% +} +else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +%> Index: framework/webtools/template/entity/tablesMySql.jsp =================================================================== --- framework/webtools/template/entity/tablesMySql.jsp (revision 0) +++ framework/webtools/template/entity/tablesMySql.jsp (revision 0) @@ -0,0 +1,36 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page contentType="text/plain" %><%@ page import="java.util.*" %><%@ page import="org.ofbiz.entity.*" %><%@ page import="org.ofbiz.entity.model.*" %><% +if(security.hasPermission("ENTITY_MAINT", session)) { + ModelReader reader = delegator.getModelReader(); + Collection ec = reader.getEntityNames(); + TreeSet entities = new TreeSet(ec); + Iterator classNamesIterator = entities.iterator(); + while(classNamesIterator != null && classNamesIterator.hasNext()) { ModelEntity entity = reader.getModelEntity((String)classNamesIterator.next());%> +CREATE TABLE <%=entity.getPlainTableName()%> (<%for (String fieldName : entity.getAllFieldNames()){ModelField field=entity.getField(fieldName); ModelFieldType type = delegator.getEntityFieldType(entity, field.getType());%><%if(field.getIsPk()){%> + <%=field.getColName()%> <%=type.getSqlType()%> NOT NULL,<%}else{%> + <%=field.getColName()%> <%=type.getSqlType()%>,<%}%><%}%> + CONSTRAINT PK_<%=entity.getPlainTableName()%> PRIMARY KEY (<%=entity.colNameString(entity.getPkFieldsUnmodifiable())%>)); +<%}%> +<% +} +else { + %>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<% +} +%> Index: framework/webtools/template/entity/xmldsdump.ftl =================================================================== --- framework/webtools/template/entity/xmldsdump.ftl (revision 0) +++ framework/webtools/template/entity/xmldsdump.ftl (revision 0) @@ -0,0 +1,130 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#if tobrowser?? && tobrowser> +

${uiLabelMap.WebtoolsExportFromDataSource}

+
+

This page can be used to export data from the database. The exported documents will have a root tag of "<entity-engine-xml>".

+
+<#if security.hasPermission("ENTITY_MAINT", session)> + Click Here to Get Data (or save to file) +<#else> +
You do not have permission to use this page (ENTITY_MAINT needed)
+ +<#else> +<#macro displayButtonBar> + + + +
${uiLabelMap.PageTitleEntityExport}
+

${uiLabelMap.WebtoolsXMLExportInfo}

+
+ +<#if security.hasPermission("ENTITY_MAINT", session)> +

${uiLabelMap.WebtoolsResults}:

+ <#if parameters.filename?has_content && (numberOfEntities?number > 0)> +

${uiLabelMap.WebtoolsWroteXMLForAllDataIn}

+

${uiLabelMap.WebtoolsWroteNRecordsToXMLFile}

+ <#elseif parameters.outpath?has_content && (numberOfEntities?number > 0)> + <#list results as result> +

${result}

+ + <#else> +

${uiLabelMap.WebtoolsNoFilenameSpecified}

+ + +
+ +

${uiLabelMap.WebtoolsExport}:

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsOutputDirectory}
${uiLabelMap.WebtoolsMaxRecordsPerFile}
${uiLabelMap.WebtoolsSingleFilename}
${uiLabelMap.WebtoolsRecordsUpdatedSince} + <@htmlTemplate.renderDateTimeField name="entityFrom" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityFrom1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> +
${uiLabelMap.WebtoolsRecordsUpdatedBefore} + <@htmlTemplate.renderDateTimeField name="entityThru" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityThru1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> +
${StringUtil.wrapString(uiLabelMap.WebtoolsOutToBrowser)} checked="checked" />
+
+

${uiLabelMap.WebtoolsEntityNames}:

+ <@displayButtonBar/> +
${uiLabelMap.WebtoolsEntitySyncDump}: + +
+ ${uiLabelMap.WebtoolsPreConfiguredSet}: + +
+ + + + <#assign entCount = 0> + <#assign checkAll = parameters.checkAll?default("false")> + <#list modelEntities as modelEntity> + <#if entCount % 3 == 0 && entCount != 0> + + + <#assign entCount = entCount + 1> + <#assign check = checkAll/> + <#if checkAll == "true" && modelEntity.getClass().getName() == "org.ofbiz.entity.model.ModelViewEntity"> + <#assign check = "false"/> + + <#assign curEntityName = modelEntity.getEntityName()/> + + + +
checked="checked"/>${curEntityName}
+ + <@displayButtonBar/> +
+<#else> +
${uiLabelMap.WebtoolsPermissionMaint}
+ + \ No newline at end of file Index: framework/webtools/template/entity/xmldsrawdump.jsp =================================================================== --- framework/webtools/template/entity/xmldsrawdump.jsp (revision 0) +++ framework/webtools/template/entity/xmldsrawdump.jsp (revision 0) @@ -0,0 +1,95 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%><%@ page import="java.io.*, java.util.*, java.net.*, org.w3c.dom.*, org.ofbiz.security.*, org.ofbiz.entity.*, org.ofbiz.entity.condition.*, org.ofbiz.entity.util.*, org.ofbiz.base.util.*, org.ofbiz.entity.model.*, org.ofbiz.entity.transaction.*" %><% + if(security.hasPermission("ENTITY_MAINT", session)) { + TreeSet passedEntityNames = (TreeSet) session.getAttribute("xmlrawdump_entitylist"); + session.removeAttribute("xmlrawdump_entitylist"); + EntityExpr entityDateCond = (EntityExpr) session.getAttribute("entityDateCond"); + session.removeAttribute("entityDateCond"); + if (passedEntityNames != null) { + + ModelReader reader = delegator.getModelReader(); + Collection ec = reader.getEntityNames(); + TreeSet entityNames = new TreeSet(ec); + + int numberOfEntities = 0; + long numberWritten = 0; + + response.setContentType("text/xml; charset=UTF-8"); + //UtilXml.writeXmlDocument(, document); + + if(passedEntityNames.size() > 0) { + numberOfEntities = passedEntityNames.size(); + + PrintWriter writer = null; + ServletContext context = pageContext.getServletContext(); + writer = response.getWriter(); + + writer.println(""); + writer.println(""); + + boolean beganTransaction = false; + try { + beganTransaction = TransactionUtil.begin(); + + Iterator i = passedEntityNames.iterator(); + while(i.hasNext()) { + String curEntityName = (String)i.next(); + + ModelEntity me = reader.getModelEntity(curEntityName); + EntityListIterator values = null; + if (me.getNoAutoStamp() == true) { + values = delegator.find(curEntityName, null, null, null, null, null); + } else { + values = delegator.find(curEntityName, entityDateCond, null, null, null, null); + } + + GenericValue value = null; + while ((value = (GenericValue) values.next()) != null) { + value.writeXmlText(writer, ""); + numberWritten++; + } + values.close(); + } + TransactionUtil.commit(beganTransaction); + } catch (GenericEntityException e) { + String errMsg = "Failure in operation, rolling back transaction"; + String module = "xmldsrawdump.jsp"; + Debug.logError(e, errMsg, module); + try { + // only rollback the transaction if we started one... + TransactionUtil.rollback(beganTransaction, errMsg, e); + } catch (GenericEntityException e2) { + Debug.logError(e2, "Could not rollback transaction: " + e2.toString(), module); + } + // after rolling back, rethrow the exception + throw e; + } finally { + // only commit the transaction if we started one... this will throw an exception if it fails + TransactionUtil.commit(beganTransaction); + } + + writer.println(""); + } + + } else {%> +ERROR: No entityName list was found in the session, go back to the export page and try again. + <%}%> +<%} else {%> + ERROR: You do not have permission to use this page (ENTITY_MAINT needed) +<%}%> Index: framework/webtools/template/geo/GeoLocation.ftl =================================================================== --- framework/webtools/template/geo/GeoLocation.ftl (revision 0) +++ framework/webtools/template/geo/GeoLocation.ftl (revision 0) @@ -0,0 +1,25 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#include "component://common/webcommon/includes/GoogleGeoLocation.ftl"/> + + +
+
+
+ Index: framework/webtools/template/labelmanager/SearchLabels.ftl =================================================================== --- framework/webtools/template/labelmanager/SearchLabels.ftl (revision 0) +++ framework/webtools/template/labelmanager/SearchLabels.ftl (revision 0) @@ -0,0 +1,106 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsLabelManagerTemporarySearchTitle}
+ ${uiLabelMap.WebtoolsLabelManagerKey} + + + + ${uiLabelMap.WebtoolsLabelManagerComponentName} + + +
+ ${uiLabelMap.WebtoolsLabelManagerFileName} + + + + ${uiLabelMap.WebtoolsLabelManagerLocale} + + +
+ ${uiLabelMap.WebtoolsLabelManagerOnlyNotUsedLabels} + + checked="checked" /> + + ${uiLabelMap.WebtoolsLabelManagerOnlyMissingTranslations} + + checked="checked" /> +
+ <#if (duplicatedLocalesLabels > 0)> +
+ ${uiLabelMap.WebtoolsLabelManagerWarningMessage} (${duplicatedLocalesLabels}) +
+ <#list duplicatedLocalesLabelsList as duplicatedLocalesLabel> +
${duplicatedLocalesLabel.labelKey} + +

${uiLabelMap.WebtoolsLabelManagerClearCacheAfterFixingDuplicateLabels} + <#else> + + +
+
+
Index: framework/webtools/template/labelmanager/UpdateLabel.ftl =================================================================== --- framework/webtools/template/labelmanager/UpdateLabel.ftl (revision 0) +++ framework/webtools/template/labelmanager/UpdateLabel.ftl (revision 0) @@ -0,0 +1,129 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
+
+ + + + + + + + + + + + + + + + + + + + <#list localesFound as localeFound> + <#assign labelValue = ""> + <#assign labelComment = ""> + <#if parameters.sourceKey??> + <#assign value = (label.getLabelValue(localeFound))!> + <#if value?has_content> + <#assign labelValue = value.getLabelValue()> + <#assign labelComment = value.getLabelComment()> + + + <#assign showLocale = true> + <#if parameters.labelLocaleName?? && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + + <#if showLocale == true> + + <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)!/> + <#if locale?? && locale?has_content> + <#assign langAttr = localeFound.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + + + <#else> + + + + + + + + + +
 
${uiLabelMap.WebtoolsLabelManagerKey} + <#if parameters.sourceKey??> + ${parameters.sourceKey} + + + <#else> + + + +
${uiLabelMap.WebtoolsLabelManagerKeyComment} + +
${uiLabelMap.WebtoolsLabelManagerFileName} + <#if parameters.sourceFileName??> + ${parameters.sourceFileName} + + <#else> + + +
+ + <#if parameters.sourceKey??> + + + <#else> + + + +
+ ${locale.getDisplayName(locale)} + ${localeFound} + + + +
+ + <#if parameters.sourceKey??> + + + <#else> + + + +
+
+
Index: framework/webtools/template/labelmanager/ViewFile.ftl =================================================================== --- framework/webtools/template/labelmanager/ViewFile.ftl (revision 0) +++ framework/webtools/template/labelmanager/ViewFile.ftl (revision 0) @@ -0,0 +1,36 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ + + + + + + + + + + + +
${uiLabelMap.WebtoolsLabelManagerKey}${parameters.sourceKey!}
${uiLabelMap.WebtoolsLabelManagerFileName}${parameters.fileName!}
 
+ +
Index: framework/webtools/template/labelmanager/ViewHardcodedLabels.ftl =================================================================== --- framework/webtools/template/labelmanager/ViewHardcodedLabels.ftl (revision 0) +++ framework/webtools/template/labelmanager/ViewHardcodedLabels.ftl (revision 0) @@ -0,0 +1,48 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ <#if parameters.searchLabels??> + + + + + + + <#assign rowNumber = 1> + <#assign rowNum = "2"> + <#list referencesList as reference> + <#assign labelFound = 'N'> + <#assign refNum = factory.getLabelReferenceFile(reference)> + <#if (refNum > 0)> + class="alternate-row"> + + + + + <#assign rowNumber = rowNumber + 1> + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + + + +
${uiLabelMap.WebtoolsLabelManagerRow}${uiLabelMap.WebtoolsLabelManagerKey}${uiLabelMap.WebtoolsLabelManagerReferences}
${rowNumber}${reference}<#if (refNum > 0)>${refNum}<#else>${refNum}
+ +
Index: framework/webtools/template/labelmanager/ViewLabels.ftl =================================================================== --- framework/webtools/template/labelmanager/ViewLabels.ftl (revision 0) +++ framework/webtools/template/labelmanager/ViewLabels.ftl (revision 0) @@ -0,0 +1,132 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ + + + + + + <#list localesFound as localeFound> + <#assign showLocale = true> + <#if parameters.labelLocaleName?? && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + + <#if showLocale == true> + <#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)!/> + <#if locale?? && locale?has_content> + <#assign langAttr = localeFound.toString()?replace("_", "-")> + <#assign langDir = "ltr"> + <#if "ar.iw"?contains(langAttr?substring(0, 2))> + <#assign langDir = "rtl"> + + + <#else> + + + + + + <#if parameters.searchLabels??> + <#assign rowNum = "2"> + <#assign rowNumber = 1> + <#assign totalLabels = 0> + <#assign missingLabels = 0> + <#assign existingLabels = 0> + <#assign previousKey = ""> + <#list labelsList as labelList> + <#assign label = labels.get(labelList)> + <#assign labelKey = label.labelKey> + <#assign totalLabels = totalLabels + 1> + <#if references??> + <#assign referenceNum = 0> + <#assign reference = references.get(labelKey)!> + <#if reference?? && reference?has_content> + <#assign referenceNum = reference.size()> + + + <#assign showLabel = true> + <#if parameters.onlyMissingTranslations?? && parameters.onlyMissingTranslations == "Y" + && parameters.labelLocaleName?? && parameters.labelLocaleName != ""> + <#assign labelValue = label.getLabelValue(parameters.labelLocaleName)!> + <#if labelValue?? && labelValue?has_content> + <#assign value = labelValue.getLabelValue()!> + <#if value?? && value?has_content> + <#assign showLabel = false> + + + + <#if showLabel && parameters.onlyNotUsedLabels?? && parameters.onlyNotUsedLabels == "Y" && (referenceNum > 0)> + <#assign showLabel = false> + + <#if showLabel && parameters.labelKey?? && parameters.labelKey != "" && parameters.labelKey != label.labelKey> + <#assign showLabel = false> + + <#if showLabel && parameters.labelFileName?? && parameters.labelFileName != "" && parameters.labelFileName != label.fileName> + <#assign showLabel = false> + + <#if showLabel == true> + class="alternate-row"> + + + + + <#list localesFound as localeFound> + <#assign labelVal = label.getLabelValue(localeFound)!> + <#assign showLocale = true> + <#if parameters.labelLocaleName?? && parameters.labelLocaleName != "" && parameters.labelLocaleName != localeFound> + <#assign showLocale = false> + + <#if showLocale> + <#if labelVal?has_content> + + <#assign existingLabels = existingLabels + 1> + <#else> + + <#assign missingLabels = missingLabels + 1> + + + + + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + + <#assign previousKey = labelKey> + <#assign rowNumber = rowNumber + 1> + + + + + + + + +
${uiLabelMap.WebtoolsLabelManagerRow}${uiLabelMap.WebtoolsLabelManagerKey}${uiLabelMap.WebtoolsLabelManagerFileName}${uiLabelMap.WebtoolsLabelManagerReferences} + ${locale.getDisplayName(locale)} + ${localeFound}
${rowNumber}class="submenutext">${label.labelKey}${label.fileName}${uiLabelMap.WebtoolsLabelManagerReferences}${labelVal.getLabelValue()} 
+ ${uiLabelMap.WebtoolsLabelStatsTotal}: ${totalLabels} + ${uiLabelMap.WebtoolsLabelStatsExist}:
+ ${uiLabelMap.WebtoolsLabelStatsMissing}: +
+ ${existingLabels}
+ ${missingLabels} +
+
Index: framework/webtools/template/labelmanager/ViewReferences.ftl =================================================================== --- framework/webtools/template/labelmanager/ViewReferences.ftl (revision 0) +++ framework/webtools/template/labelmanager/ViewReferences.ftl (revision 0) @@ -0,0 +1,61 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +

${uiLabelMap.WebtoolsLabelManagerViewReferences}

+ + + + + + + + + + + + + + <#if parameters.sourceKey?? && parameters.sourceKey?has_content> + <#assign rowNum = "2"> + <#assign rowNumber = 1> + <#assign totalRefs = 0/> + <#assign reference = references.get(parameters.sourceKey)!> + <#if reference?? && reference?has_content> + <#assign entries = reference.entrySet()> + <#list entries as entry> + class="alternate-row"> + + + + + <#assign totalRefs = totalRefs + entry.getValue()/> + <#if rowNum == "2"> + <#assign rowNum = "1"> + <#else> + <#assign rowNum = "2"> + + <#assign rowNumber = rowNumber + 1> + + class="alternate-row"> + + + + + + +
${uiLabelMap.WebtoolsLabelManagerKey}${parameters.sourceKey!}
 
${uiLabelMap.WebtoolsLabelManagerRow}${uiLabelMap.WebtoolsLabelManagerFileName}${uiLabelMap.WebtoolsLabelManagerReferences}
${rowNumber}${entry.getKey()}${entry.getValue()}
 ${uiLabelMap.CommonTotal}${totalRefs}
Index: framework/webtools/template/log/logContent.ftl =================================================================== --- framework/webtools/template/log/logContent.ftl (revision 0) +++ framework/webtools/template/log/logContent.ftl (revision 0) @@ -0,0 +1,22 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#list logLines as logLine> +
${logLine.line}
+ Index: framework/webtools/template/main.ftl =================================================================== --- framework/webtools/template/main.ftl (revision 0) +++ framework/webtools/template/main.ftl (revision 0) @@ -0,0 +1,120 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+
    +
  • ${uiLabelMap.WebtoolsMainPage}
  • +
  • ${delegator.getDelegatorName()}
  • +
+
+
+
+ <#if !userLogin?has_content> +
${uiLabelMap.WebtoolsForSomethingInteresting}.
+
+
${uiLabelMap.WebtoolsNoteAntRunInstall}
+
+ + + <#if userLogin?has_content> + + +
+
Index: framework/webtools/template/ping.ftl =================================================================== --- framework/webtools/template/ping.ftl (revision 0) +++ framework/webtools/template/ping.ftl (revision 0) @@ -0,0 +1,21 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +${requestAttributes._ERROR_MESSAGE_!} +${requestAttributes.message!} \ No newline at end of file Index: framework/webtools/template/ping.txt =================================================================== --- framework/webtools/template/ping.txt (revision 0) +++ framework/webtools/template/ping.txt (revision 0) @@ -0,0 +1 @@ +pong \ No newline at end of file Index: framework/webtools/template/service/availableservices.ftl =================================================================== --- framework/webtools/template/service/availableservices.ftl (revision 0) +++ framework/webtools/template/service/availableservices.ftl (revision 0) @@ -0,0 +1,378 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#--Dispatcher Name: ${dispatcherName?default(uiLabelMap.CommonNA)} --> + +<#assign url='ServiceList'> +<#assign popupUrl='serviceEcaDetail'> + +<#-- Selected Service is available --> +<#if selectedServiceMap??> + <#if showWsdl?? && showWsdl = true> +
+
+

${uiLabelMap.WebtoolsServiceWSDL} - ${uiLabelMap.WebtoolsService} ${selectedServiceMap.serviceName}

+
+
+
+
+ ${uiLabelMap.CommonBack} +
+
+ <#else> +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsServiceName}${selectedServiceMap.serviceName}${uiLabelMap.WebtoolsEngineName}${selectedServiceMap.engineName}
${uiLabelMap.CommonDescription}${selectedServiceMap.description}${uiLabelMap.WebtoolsInvoke}${selectedServiceMap.invoke}
${uiLabelMap.WebtoolsExportable}${selectedServiceMap.export}<#if selectedServiceMap.exportBool = "true"> (${uiLabelMap.WebtoolsShowShowWSDL})${uiLabelMap.WebtoolsLocation}${selectedServiceMap.location}
${uiLabelMap.WebtoolsDefinitionLocation}${selectedServiceMap.definitionLocation}${uiLabelMap.WebtoolsDefaultEntityName}${selectedServiceMap.defaultEntityName}
${uiLabelMap.WebtoolsArtifactInfo}${uiLabelMap.WebtoolsArtifactInfo}${uiLabelMap.WebtoolsRequireNewTransaction}${selectedServiceMap.requireNewTransaction}
 ${uiLabelMap.WebtoolsUseTransaction}${selectedServiceMap.useTrans}
 ${uiLabelMap.WebtoolsMaxRetries}${selectedServiceMap.maxRetry}
+
+
+ +
+
+

${uiLabelMap.SecurityGroups}

+
+ <#if selectedServiceMap.permissionGroups != 'NA'> + + + + + + + <#list selectedServiceMap.permissionGroups as permGrp> + + + + + + +
${uiLabelMap.WebtoolsNameOrRole}${uiLabelMap.WebtoolsPermissionType}${uiLabelMap.WebtoolsAction}
${permGrp.nameOrRole?default(uiLabelMap.CommonNA)}${permGrp.permType?default(uiLabelMap.CommonNA)}${permGrp.action?default(uiLabelMap.CommonNA)}
+ <#else> +
+ ${selectedServiceMap.permissionGroups} +
+ +
+ +
+
+

${uiLabelMap.WebtoolsImplementedServices}

+
+
+ <#if selectedServiceMap.implServices == 'NA'> + ${selectedServiceMap.implServices} + <#elseif selectedServiceMap.implServices?has_content> + <#list selectedServiceMap.implServices as implSrv> + ${implSrv.getService()}
+ + +
+
+ + <#-- If service has ECA's --> + <#if ecaMapList?? && ecaMapList?has_content> + <#-- add the javascript for modalpopup's --> + +
+
+

${uiLabelMap.WebtoolsServiceECA}

+
+ + + + <#if ecaMapList.runOnError??> + + + <#if ecaMapList.runOnFailure??> + + + + + + + <#list ecaMapList as ecaMap> + + + <#if ecaMap.runOnError??> + + + <#if ecaMap.runOnFailure??> + + + <#if ecaMap.actions?has_content> + + + <#if ecaMap.conditions?has_content> + + + <#if ecaMap.sets?has_content> + + + + + +
${uiLabelMap.WebtoolsEventName}${uiLabelMap.WebtoolsRunOnError}${uiLabelMap.WebtoolsRunOnFailure}${uiLabelMap.WebtoolsActions}${uiLabelMap.WebtoolsConditions}${uiLabelMap.WebtoolsSet}
${ecaMap.eventName!}${ecaMap.runOnError}${ecaMap.runOnFailure} + <#list ecaMap.actions as action> + + + + + + + + + + + + + + + + + + + + +
${action.serviceName?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsSecasIgnoreError} ${action.ignoreError?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsSecasIgnoreFailure} ${action.ignoreFailure?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsSecasPersist} ${action.persist?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsSecasResultMapName} ${action.resultMapName?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsSecasResultToContext} ${action.resultToContext?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsSecasResultToResult} ${action.resultToResult?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsSecasServiceMode} ${action.serviceMode?default(uiLabelMap.CommonNA)} 
+ +
+ <#list ecaMap.conditions as condition> + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.WebtoolsCompareType} ${condition.compareType?default(uiLabelMap.CommonNA)} + ${uiLabelMap.WebtoolsConditionService} + <#if condition.conditionService?has_content> + ${condition.conditionService?default(uiLabelMap.CommonNA)} + <#else> + ${condition.conditionService?default(uiLabelMap.CommonNA)} + + ${uiLabelMap.WebtoolsFormat} ${condition.format?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsIsService} ${condition.isService?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsIsConstant} ${condition.isConstant?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsOperator} ${condition.operator?default(uiLabelMap.CommonNA)}
${uiLabelMap.WebtoolsLHSMapName} ${condition.lhsMapName?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsLHSValueName} ${condition.lhsValueName?default(uiLabelMap.CommonNA)} 
${uiLabelMap.WebtoolsRHSMapName} ${condition.rhsMapName?default(uiLabelMap.CommonNA)}${uiLabelMap.WebtoolsRHSValueName} ${condition.rhsValueName?default(uiLabelMap.CommonNA)} 

+ +
+ <#list ecaMap.sets as set> + + + + + + + <#if set.envName?has_content> + + + + + + <#if set.value?has_content> + + + + + + <#if set.format?has_content> + + + + +
${uiLabelMap.WebtoolsFieldName} ${set.fieldName?default(uiLabelMap.CommonNA)} 
${uiLabelMap.WebtoolsEnvName} ${set.envName} 
${uiLabelMap.CommonValue} ${set.value} 
${uiLabelMap.WebtoolsFormat} ${set.format} 

+ +

+
+ + <#-- End if service has ECA's --> + + <#list selectedServiceMap.allParamsList! as paramList> + +
+
+

${paramList.title}

+
+ <#if paramList.paramList?? && paramList.paramList?has_content> + + + + + + + <#-- --> + + + + + + <#list paramList.paramList as modelParam> + + + + + + <#-- --> + + + + + + +
${uiLabelMap.WebtoolsParameterName}${uiLabelMap.CommonDescription}${uiLabelMap.WebtoolsOptional}${uiLabelMap.CommonType}Default Value${uiLabelMap.WebtoolsMode}${uiLabelMap.WebtoolsIsSetInternally}${uiLabelMap.WebtoolsEntityName}${uiLabelMap.WebtoolsFieldName}
${modelParam.name!}${modelParam.description!}${modelParam.optional!}${modelParam.type!}[${modelParam.defaultValue!}]${modelParam.mode!}${modelParam.internal!} + <#if modelParam.entityName??> + ${modelParam.entityName!} + + ${modelParam.fieldName!}
+ <#else> +
+ ${uiLabelMap.WebtoolsNoParametersDefined} +
+ +
+ + + <#-- Show a little form for exportServiceEoModelBundle --> +
+
+ + + Save eomodeld to Local Path: + +
+
+ +<#-- No Service selected , we list all--> +<#elseif servicesList?? && servicesList?has_content> + + <#-- Show alphabetical index --> + <#if serviceNamesAlphaList?? && serviceNamesAlphaList?has_content> +
+ <#assign isfirst=true> + <#list serviceNamesAlphaList as alpha> + ${alpha} + <#assign isfirst=false> + +
+ + +
+
+ + + + + + + + + + + <#assign alt_row = false> + <#list servicesList as service> + class="alternate-row"> + + + + + + + + <#assign alt_row = !alt_row> + +
${uiLabelMap.WebtoolsServiceName}${uiLabelMap.WebtoolsEngineName}${uiLabelMap.WebtoolsDefaultEntityName}${uiLabelMap.WebtoolsInvoke}${uiLabelMap.WebtoolsLocation}${uiLabelMap.WebtoolsDefinitionLocation}
${service.serviceName}${service.engineName}${service.defaultEntityName}${service.invoke}${service.location}${service.definitionLocation}
+
+
+<#else> + ${uiLabelMap.WebtoolsNoServicesFound}. + ${uiLabelMap.CommonListAll} + Index: framework/webtools/template/service/serviceResult.ftl =================================================================== --- framework/webtools/template/service/serviceResult.ftl (revision 0) +++ framework/webtools/template/service/serviceResult.ftl (revision 0) @@ -0,0 +1,52 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+
+

${uiLabelMap.PageTitleScheduleJob}

+
+
+
+ + ${uiLabelMap.WebtoolsParameterName} + ${uiLabelMap.WebtoolsParameterValue} + ${uiLabelMap.WebtoolsServiceSaveValue} ? + + <#if serviceResultList?has_content> + <#list serviceResultList as srl> + + <#if srl.hasChild=="Y"> + ${srl.key!} + <#else> + ${srl.key!} + + ${srl.value!} + + + + + +   + ${uiLabelMap.WebtoolsServiceClearPreviousParams} ? + + + +
+
+
Index: framework/webtools/template/service/setServiceParameter.ftl =================================================================== --- framework/webtools/template/service/setServiceParameter.ftl (revision 0) +++ framework/webtools/template/service/setServiceParameter.ftl (revision 0) @@ -0,0 +1,40 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ <#list scheduleOptions as scheduleOption> + + + + + + <#list serviceParameters as serviceParameter> + + + + + + + + +
${serviceParameter.name} (${serviceParameter.type}) + class="required"/> + <#if serviceParameter.optional == "N">${uiLabelMap.CommonRequired} + <#if serviceParameter.defaultValue?has_content>${uiLabelMap.WebtoolsServiceDefault} ${serviceParameter.defaultValue} +
+
\ No newline at end of file Index: framework/webtools/template/service/setServiceParameterSync.ftl =================================================================== --- framework/webtools/template/service/setServiceParameterSync.ftl (revision 0) +++ framework/webtools/template/service/setServiceParameterSync.ftl (revision 0) @@ -0,0 +1,45 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +
+ <#list scheduleOptions as scheduleOption> + + + + + + <#list serviceParameters as serviceParameter> + + + + + + + + +
${serviceParameter.name} (${serviceParameter.type}) + class="required"/> + <#if serviceParameter.optional == "N">${uiLabelMap.CommonRequired} + <#if serviceParameter.defaultValue?has_content>${uiLabelMap.WebtoolsServiceDefault} ${serviceParameter.defaultValue?string} + <#if serviceParameter_index == 0> + + +
+
Index: framework/webtools/template/service/threads.ftl =================================================================== --- framework/webtools/template/service/threads.ftl (revision 0) +++ framework/webtools/template/service/threads.ftl (revision 0) @@ -0,0 +1,54 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#if parameters.maxElements?has_content><#assign maxElements = parameters.maxElements?number/><#else><#assign maxElements = 10/> + +

${uiLabelMap.WebtoolsThisThread} ${Static["java.lang.Thread"].currentThread().getName()} (${Static["java.lang.Thread"].currentThread().getId()})

+
+ + + + + + + + + + <#assign alt_row = false> + <#list allThreadList as javaThread> + <#if javaThread??> + <#assign stackTraceArray = javaThread.getStackTrace()/> + class="alternate-row"> + + + + + + + + + <#-- toggle the row color --> + <#assign alt_row = !alt_row> + +
${uiLabelMap.WebtoolsGroup}${uiLabelMap.WebtoolsThreadId}${uiLabelMap.WebtoolsThread}${uiLabelMap.CommonStatus}${uiLabelMap.WebtoolsPriority}${uiLabelMap.WebtoolsDaemon}
${(javaThread.getThreadGroup().getName())!}${javaThread.getId()?string} + ${javaThread.getName()!} + <#list 1..maxElements as stackIdx> + <#assign stackElement = stackTraceArray[stackIdx]!/> + <#if (stackElement.toString())?has_content>
${stackElement.toString()}
+ +
${javaThread.getState().name()!} ${javaThread.getPriority()}${javaThread.isDaemon()?string}<#-- /${javaThread.isAlive()?string}/${javaThread.isInterrupted()?string} -->
Index: framework/webtools/template/showDateTime.ftl =================================================================== --- framework/webtools/template/showDateTime.ftl (revision 0) +++ framework/webtools/template/showDateTime.ftl (revision 0) @@ -0,0 +1,19 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()} \ No newline at end of file Index: framework/webtools/template/tempexpr/tempExprMacros.ftl =================================================================== --- framework/webtools/template/tempexpr/tempExprMacros.ftl (revision 0) +++ framework/webtools/template/tempexpr/tempExprMacros.ftl (revision 0) @@ -0,0 +1,177 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#-- +To use these macros in your template, insert the following line in +your template file: +<#include "component://common/webcommon/includes/tempExprMacros.ftl"/> +--> + +<#include "component://common/webcommon/includes/commonMacros.ftl"/> + +<#assign + occurrenceList = Static["org.ofbiz.service.calendar.ExpressionUiHelper"].getOccurrenceList() + frequencyTypeList = Static["org.ofbiz.service.calendar.ExpressionUiHelper"].getFrequencyValueList(uiLabelMap) + firstDayOfWeek = Static["org.ofbiz.service.calendar.ExpressionUiHelper"].getFirstDayOfWeek(locale) + lastDayOfWeek = Static["org.ofbiz.service.calendar.ExpressionUiHelper"].getLastDayOfWeek(locale) +/> + +<#macro DateRange formName="" fromDate="" toDate=""> + + ${uiLabelMap.CommonFrom} + + <@DateField formName=formName fieldName="date1" fieldValue=fromDate/> + + + + ${uiLabelMap.CommonTo} + + <@DateField formName=formName fieldName="date2" fieldValue=toDate/> + + + + +<#macro DayInMonth occurrence=0 day=firstDayOfWeek> + + ${uiLabelMap.TemporalExpressionOccurrence} + + + + + + ${uiLabelMap.CommonDay} + <@DayOfWeekField fieldName="integer1" fieldValue=day/> + + + +<#macro DayOfMonthRange fromDay=1 toDay=31> + + ${uiLabelMap.CommonFrom} + <@DayOfMonthField fieldName="integer1" fieldValue=fromDay/> + + + ${uiLabelMap.CommonTo} + <@DayOfMonthField fieldName="integer2" fieldValue=toDay/> + + + +<#macro HourOfDayRange fromHour=1 toHour=23> + + ${uiLabelMap.CommonFrom} + <@HourOfDayField fieldName="integer1" fieldValue=fromHour/> + + + ${uiLabelMap.CommonTo} + <@HourOfDayField fieldName="integer2" fieldValue=toHour/> + + + +<#macro DayOfWeekRange fromDay=firstDayOfWeek toDay=lastDayOfWeek> + + ${uiLabelMap.CommonFrom} + <@DayOfWeekField fieldName="integer1" fieldValue=fromDay/> + + + ${uiLabelMap.CommonTo} + <@DayOfWeekField fieldName="integer2" fieldValue=toDay/> + + + +<#macro Frequency formName="" fromDate="" freqType=-1 freqValue=0> + + ${uiLabelMap.CommonFrom} + + <@DateField formName=formName fieldName="date1" fieldValue=fromDate/> + + + + ${uiLabelMap.TemporalExpressionFreqType} + + + + + + ${uiLabelMap.TemporalExpressionFreqCount} + + + + + + +<#macro MinuteRange fromMinute=1 toMinute=59> + + ${uiLabelMap.CommonFrom} + <@MinuteField fieldName="integer1" fieldValue=fromMinute/> + + + ${uiLabelMap.CommonTo} + <@MinuteField fieldName="integer2" fieldValue=toMinute/> + + + +<#macro MonthRange fromMonth=0 toMonth=11> + + ${uiLabelMap.CommonFrom} + <@MonthField fieldName="integer1" fieldValue=fromMonth/> + + + ${uiLabelMap.CommonTo} + <@MonthField fieldName="integer2" fieldValue=toMonth/> + + + +<#macro TimeOfDayRange fromTime="" toTime="" freqType=11 freqValue=1> + + ${uiLabelMap.CommonFrom} + ${uiLabelMap.TemporalExpressionTimeFormat} + + + ${uiLabelMap.CommonTo} + ${uiLabelMap.TemporalExpressionTimeFormat} + + + ${uiLabelMap.TemporalExpressionFreqType} + + + + + + ${uiLabelMap.TemporalExpressionFreqCount} + + + Index: framework/webtools/template/tempexpr/tempExprMaint.ftl =================================================================== --- framework/webtools/template/tempexpr/tempExprMaint.ftl (revision 0) +++ framework/webtools/template/tempexpr/tempExprMaint.ftl (revision 0) @@ -0,0 +1,191 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<#include "tempExprMacros.ftl"/> +

${title}

+<#if temporalExpression?has_content> + <#-- Edit existing expression --> + <#if !"INTERSECTION.UNION.DIFFERENCE.SUBSTITUTION"?contains(temporalExpression.tempExprTypeId)> +
+ + + + + + + + + + + + + <#if !"INTERSECTION.UNION.DIFFERENCE.SUBSTITUTION"?contains(temporalExpression.tempExprTypeId)> + + + + + <#else> + + + + + + <#if temporalExpression.tempExprTypeId == "DATE_RANGE"> + <@DateRange formName="updateExpression" fromDate=temporalExpression.date1 toDate=temporalExpression.date2/> + <#elseif temporalExpression.tempExprTypeId == "DAY_IN_MONTH"> + <@DayInMonth occurrence=temporalExpression.integer2 day=temporalExpression.integer1/> + <#elseif temporalExpression.tempExprTypeId == "DAY_OF_MONTH_RANGE"> + <@DayOfMonthRange fromDay=temporalExpression.integer1 toDay=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "DAY_OF_WEEK_RANGE"> + <@DayOfWeekRange fromDay=temporalExpression.integer1 toDay=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "FREQUENCY"> + <@Frequency formName="updateExpression" fromDate=temporalExpression.date1 freqType=temporalExpression.integer1 freqValue=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "DAY_OF_WEEK_RANGE"> + <@DayOfWeekRange fromDay=temporalExpression.integer1 toDay=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "HOUR_RANGE"> + <@HourOfDayRange fromHour=temporalExpression.integer1 toHour=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "MINUTE_RANGE"> + <@MinuteRange fromMinute=temporalExpression.integer1 toMinute=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "MONTH_RANGE"> + <@MonthRange fromMonth=temporalExpression.integer1 toMonth=temporalExpression.integer2/> + <#elseif temporalExpression.tempExprTypeId == "TIME_OF_DAY_RANGE"> + <@TimeOfDayRange fromTime=temporalExpression.string1 toTime=temporalExpression.string2 freqType=temporalExpression.integer1 freqValue=temporalExpression.integer2/> + <#elseif "INTERSECTION.UNION.DIFFERENCE.SUBSTITUTION"?contains(temporalExpression.tempExprTypeId)> + <#assign candidateIdList = Static["org.ofbiz.service.calendar.ExpressionUiHelper"].getCandidateIncludeIds(delegator, temporalExpression.tempExprId)/> + <#if "INTERSECTION.UNION"?contains(temporalExpression.tempExprTypeId)> + + + + + <#else> + <#assign hasInclude = false hasExclude = false hasSubstitution = false/> + <#if childExpressionList?has_content> + <#list childExpressionList as childExpression> + <#if childExpression.exprAssocType == "INCLUDE"> + <#assign hasInclude = true/> + <#elseif childExpression.exprAssocType == "EXCLUDE"> + <#assign hasExclude = true/> + <#elseif childExpression.exprAssocType == "SUBSTITUTION"> + <#assign hasSubstitution = true/> + + + + <#if !hasInclude> + + + + + + <#if !hasExclude> + + + + + + <#if !hasSubstitution && temporalExpression.tempExprTypeId == "SUBSTITUTION"> + + + + + + + + <#if !"INTERSECTION.UNION.DIFFERENCE.SUBSTITUTION"?contains(temporalExpression.tempExprTypeId)> + + + + +
${uiLabelMap.TemporalExpressionId}${temporalExpression.tempExprId}
${uiLabelMap.TemporalExpressionType}${uiLabelMap.get("TemporalExpression_" + temporalExpression.tempExprTypeId)}
${uiLabelMap.CommonDescription}
${uiLabelMap.CommonDescription}${temporalExpression.get("description",locale)!}
${uiLabelMap.TemporalExpressionInclude}<@CreateExprAssocForm formName="includeExpression"/>
${uiLabelMap.TemporalExpressionInclude}<@CreateExprAssocForm formName="includeExpression" exprAssocType="INCLUDE"/>
${uiLabelMap.TemporalExpressionExclude}<@CreateExprAssocForm formName="excludeExpression" exprAssocType="EXCLUDE"/>
${uiLabelMap.TemporalExpression_SUBSTITUTION}<@CreateExprAssocForm formName="substitutionExpression" exprAssocType="SUBSTITUTION"/>
 
+
+ <#else> + + +<#else> + <#-- Create new expression --> + <@CreateForm "DATE_RANGE" CreateDateRange/> +
+ <@CreateForm "DAY_IN_MONTH" DayInMonth/> +
+ <@CreateForm "DAY_OF_MONTH_RANGE" DayOfMonthRange/> +
+ <@CreateForm "DAY_OF_WEEK_RANGE" DayOfWeekRange/> +
+ <@CreateForm "FREQUENCY" CreateFrequency/> +
+ <@CreateForm "HOUR_RANGE" HourOfDayRange/> +
+ <@CreateForm "MINUTE_RANGE" MinuteRange/> +
+ <@CreateForm "MONTH_RANGE" MonthRange/> +
+ <@CreateForm "TIME_OF_DAY_RANGE" TimeOfDayRange/> +
+ <@CreateForm "INTERSECTION"/> +
+ <@CreateForm "UNION"/> +
+ <@CreateForm "DIFFERENCE"/> +
+ <@CreateForm "SUBSTITUTION"/> + + +<#macro CreateForm expressionTypeId="" formContents=NullMacro> +
+ + + <#assign mapExpression = "TemporalExpression_" + expressionTypeId/> + <#assign headingText = uiLabelMap[mapExpression]/> + + + + + + + + + + <@formContents/> + + + + +
${headingText}
${uiLabelMap.TemporalExpressionId}${uiLabelMap.CommonAutoAssignedId}
${uiLabelMap.CommonDescription}
 
+
+ + +<#macro CreateDateRange> + <@DateRange formName="DATE_RANGE"/> + + +<#macro CreateFrequency> + <@Frequency formName="FREQUENCY"/> + + +<#macro CreateExprAssocForm formName="" exprAssocType=""> +
+ + + + + +
+ Index: framework/webtools/webapp/webtools/WEB-INF/controller.xml =================================================================== --- framework/webtools/webapp/webtools/WEB-INF/controller.xml (revision 1738254) +++ framework/webtools/webapp/webtools/WEB-INF/controller.xml (working copy) @@ -609,8 +609,8 @@ - - + + Index: framework/webtools/webapp/webtools/entity/CheckDb.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/CheckDb.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/CheckDb.ftl (nonexistent) @@ -1,120 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -

${uiLabelMap.WebtoolsCheckUpdateDatabase}

-
- - ${uiLabelMap.WebtoolsGroupName}: -   ${uiLabelMap.WebtoolsPks} -   ${uiLabelMap.WebtoolsFks} -   ${uiLabelMap.WebtoolsFkIdx} -   ${uiLabelMap.WebtoolsAddMissing} -   ${uiLabelMap.WebtoolsRepairColumnSizes} - -
-

${uiLabelMap.WebtoolsNoteUseAtYourOwnRisk}

- -

${uiLabelMap.WebtoolsRemoveAllTables}

-
- - ${uiLabelMap.WebtoolsGroupName}: - - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllPrimaryKeys}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemovePrimaryKey}

-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllDeclaredIndices}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeyIndices}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeys}

-

${uiLabelMap.WebtoolsNoteForeighKeysMayAlsoBeCreated}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsUpdateCharacterSetAndCollate}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-<#if miters?has_content> -
-
    - <#list miters as miter> -
  • ${miter}
  • - -
- Index: framework/webtools/webapp/webtools/entity/ConnectionPoolStatus.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/ConnectionPoolStatus.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/ConnectionPoolStatus.ftl (nonexistent) @@ -1,56 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -

Connection Pool Status

- -<#assign groups = delegator.getModelGroupReader().getGroupNames(delegator.getDelegatorName())!/> - - - - - - - - - - - - - <#assign alt_row = false> - <#if (groups?has_content)> - <#list groups as group> - <#assign helper = delegator.getGroupHelperName(group)!/> - <#if (helper?has_content)> - <#assign dataSourceInfo = Static["org.ofbiz.entity.connection.DBCPConnectionFactory"].getDataSourceInfo(helper)!/> - <#if (dataSourceInfo?has_content)> - - - - - - - - - - - - - - - -
Helper NameNum ActiveNum IdleNum TotalMax ActiveMax IdleMin IdleMin Evictable Idle TimeMax Wait
${helper}${dataSourceInfo.poolNumActive!}${dataSourceInfo.poolNumIdle!}${dataSourceInfo.poolNumTotal!}${dataSourceInfo.poolMaxActive!}${dataSourceInfo.poolMaxIdle!}${dataSourceInfo.poolMinIdle!}${dataSourceInfo.poolMinEvictableIdleTimeMillis!}${dataSourceInfo.poolMaxWait!}
Index: framework/webtools/webapp/webtools/entity/EntityExportAll.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityExportAll.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityExportAll.ftl (nonexistent) @@ -1,36 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -
${uiLabelMap.WebtoolsExportFromDataSource}
-

${uiLabelMap.WebtoolsXMLExportInfo}

-<#if results?has_content> -
-

${uiLabelMap.WebtoolsResults}:

- <#list results as result> -

${result}

- - -
-
- ${uiLabelMap.WebtoolsOutputDirectory}:
- ${uiLabelMap.CommonFromDate}: <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
- -
Index: framework/webtools/webapp/webtools/entity/EntityImport.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityImport.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityImport.ftl (nonexistent) @@ -1,48 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -
${uiLabelMap.WebtoolsImportToDataSource}
-

${uiLabelMap.WebtoolsXMLImportInfo}

-
- -
- ${uiLabelMap.WebtoolsAbsoluteFileNameOrUrl}:
-
- ${uiLabelMap.WebtoolsAbsoluteFTLFilename}:
-
- checked="checked"/>${uiLabelMap.WebtoolsIsURL}
- checked="checked"/>${uiLabelMap.WebtoolsMostlyInserts}
- checked="checked"/>${uiLabelMap.WebtoolsMaintainTimestamps}
- checked="checked"/>${uiLabelMap.WebtoolsCreateDummyFks}
- checked="checked"/>${uiLabelMap.WebtoolsCheckDataOnly}
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
-
-
- ${uiLabelMap.WebtoolsCompleteXMLDocument}:
- -
-
- <#if messages??> -
-

${uiLabelMap.WebtoolsResults}:

- <#list messages as message> -

${message}

- - Index: framework/webtools/webapp/webtools/entity/EntityImportDir.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityImportDir.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityImportDir.ftl (nonexistent) @@ -1,42 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -
${uiLabelMap.WebtoolsImportToDataSource}
-

${uiLabelMap.WebtoolsXMLImportInfo}

-
- -
- ${uiLabelMap.WebtoolsAbsolutePath}:
-
- checked="checked"/>${uiLabelMap.WebtoolsMostlyInserts}
- checked="checked"/>${uiLabelMap.WebtoolsMaintainTimestamps}
- checked="checked"/>${uiLabelMap.WebtoolsCreateDummyFks}
- checked="checked"/>${uiLabelMap.WebtoolsDeleteFiles}
- checked="checked"/>${uiLabelMap.WebtoolsCheckDataOnly}
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
- ${uiLabelMap.WebtoolsPause}:
-
-
- <#if messages??> -
-

${uiLabelMap.WebtoolsResults}:

- <#list messages as message> -

${message}

- - Index: framework/webtools/webapp/webtools/entity/EntityImportReaders.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityImportReaders.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityImportReaders.ftl (nonexistent) @@ -1,39 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -
${uiLabelMap.WebtoolsImportToDataSource}
-

${uiLabelMap.WebtoolsXMLImportInfo}

-
-
- Enter Readers (comma separated, no spaces; from entityengine.xml and ofbiz-component.xml files; common ones include seed,ext,demo):
-
- checked="checked" value="true"/>${uiLabelMap.WebtoolsMostlyInserts}
- checked="checked" value="true"/>${uiLabelMap.WebtoolsMaintainTimestamps}
- checked="checked" value="true"/>${uiLabelMap.WebtoolsCreateDummyFks}
- checked="checked" value="true"/>${uiLabelMap.WebtoolsCheckDataOnly}
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
-
- <#if messages??> -
-

${uiLabelMap.WebtoolsResults}:

- <#list messages as message> -

${message}

- - Index: framework/webtools/webapp/webtools/entity/EntityMaint.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityMaint.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityMaint.ftl (nonexistent) @@ -1,110 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -
-
- ${uiLabelMap.CommonGroup}: - - ${uiLabelMap.WebtoolsEntityName}: - - -
-
- <#assign firstChar = "x"> - <#assign anchor=""> - <#assign alt_row = false> - <#assign right_col = false> -
- <#list entitiesList as entity> - <#if entity.entityName?substring(0, 1) != firstChar> - <#assign firstChar = entity.entityName?substring(0, 1)> - ${firstChar}  - - -
-
-
-
    -
  • ${uiLabelMap.WebtoolsEntitiesAlpha}
  • -
-
-
-
- <#assign firstChar = "*"> - - - - - - - - <#list entitiesList as entity> - <#if entity.entityName?substring(0, 1) != firstChar> - <#if right_col> - - <#assign right_col = false> - <#assign alt_row = !alt_row> - - <#if firstChar != "*"> - class="alternate-row"> - <#assign alt_row = !alt_row> - - <#assign firstChar = entity.entityName?substring(0, 1)> - <#assign anchor="id=\"Entity_${firstChar}\""> - - <#if !right_col> - class="alternate-row"> - - - ${anchor}>${entity.entityName}<#if entity.viewEntity == 'Y'> (${uiLabelMap.WebtoolsEntityView}) - <#assign anchor=""> - - <#if right_col> - - <#assign alt_row = !alt_row> - - <#assign right_col = !right_col> - - <#if right_col> - - -
${uiLabelMap.WebtoolsEntityName} ${uiLabelMap.WebtoolsEntityName} 
  
 
- <#if entity.viewEntity == 'Y'> - <#if entity.entityPermissionView == 'Y'> - ${uiLabelMap.WebtoolsReln} - ${uiLabelMap.WebtoolsFind} - ${uiLabelMap.WebtoolsAll} - - <#else> - <#if entity.entityPermissionCreate == 'Y'> - ${uiLabelMap.WebtoolsCreate} - - <#if entity.entityPermissionView == 'Y'> - ${uiLabelMap.WebtoolsReln} - ${uiLabelMap.WebtoolsFind} - ${uiLabelMap.WebtoolsAll} - - -
  
-
-
Index: framework/webtools/webapp/webtools/entity/EntityRef.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityRef.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityRef.ftl (nonexistent) @@ -1,32 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - - - ${uiLabelMap.WebtoolsEntityReferenceChart} - - - - - - - <h2>${uiLabelMap.CommonFrameAlert1}</h2> - <p>${uiLabelMap.CommonFrameAlert2}</p> - <br /> - - Index: framework/webtools/webapp/webtools/entity/EntityRefList.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityRefList.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityRefList.ftl (nonexistent) @@ -1,77 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<#assign docLangAttr = locale.toString()?replace("_", "-")> -<#assign langDir = "ltr"> -<#if "ar.iw"?contains(docLangAttr?substring(0, 2))> - <#assign langDir = "rtl"> - - - - ${uiLabelMap.WebtoolsEntityReference} - - - -
- <#if !forstatic> - ${uiLabelMap.WebtoolsPopupWebToolsMain}
- ${uiLabelMap.WebtoolsEntityReferenceMainPage}
- ${uiLabelMap.WebtoolsCheckUpdateDatabase} -
- <#-- want to leave these out because they are only working so-so, and cause people more problems that they solve, IMHO - Generate Entity Model XML (all in one)
- Save Entity Model XML to Files
- --> - <#-- this is not working now anyway... - Generate Entity Group XML
- Save Entity Group XML to File
- --> - ${uiLabelMap.WebtoolsInduceModelXMLFromDatabase}
- - <#if packageNames?has_content> -
-
${uiLabelMap.WebtoolsEntityPackages}
- <#list packageNames as packageName> - <#if forstatic> - ${packageName}
- <#else> - ${packageName}
- - - - <#if entitiesList?has_content> -
-
${uiLabelMap.WebtoolsEntitiesAlpha}
- <#list entitiesList as entity> - <#if forstatic> - ${entity.entityName} - <#else> - ${entity.entityName} - -
- - -
- - Index: framework/webtools/webapp/webtools/entity/EntityRefMain.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityRefMain.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityRefMain.ftl (nonexistent) @@ -1,178 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<#assign docLangAttr = locale.toString()?replace("_", "-")> -<#assign langDir = "ltr"> -<#if "ar.iw"?contains(docLangAttr?substring(0, 2))> - <#assign langDir = "rtl"> - -<#assign forstatic = false/> -<#if (parameters.forstatic)?default("false") == "true"> - <#assign forstatic = true/> - - - - ${uiLabelMap.WebtoolsEntityReference} - - - -
${uiLabelMap.WebtoolsEntityReferenceChart}
- ${numberOfEntities} ${uiLabelMap.WebtoolsTotalEntities} -
- <#assign numberShowed = 0> - <#list packagesList as package> -
${package.packageName}

- <#list package.entitiesList as entity> - - - - - - - - - - - - <#list entity.javaNameList as javaName> - - - - - <#if javaName.javaType?has_content> - - - <#else> - - - - - - <#if entity.relationsList?has_content> - - - - - - - - <#list entity.relationsList as relation> - - - - - - - <#if entity.indexList?has_content> - - - - - - - - <#list entity.indexList as index> - - - - - - -
-
- ${uiLabelMap.WebtoolsEntity}: ${entity.entityName} - <#if entity.plainTableName?has_content> | ${uiLabelMap.WebtoolsTable}: ${entity.plainTableName} -
-
${entity.title}  - <#if !forstatic> - [${uiLabelMap.WebtoolsViewData}] - - <#if !forstatic> - [${uiLabelMap.WebtoolsArtifactInfo}] - -
- <#if entity.description?has_content && - !entity.description.equalsIgnoreCase("NONE") && - !entity.description.equalsIgnoreCase("")> -
${entity.description}
- - <#if entity.location?has_content> -
${entity.location}
- -
${uiLabelMap.WebtoolsJavaName}${uiLabelMap.WebtoolsDbName}${uiLabelMap.WebtoolsFieldType}${uiLabelMap.WebtoolsJavaType}${uiLabelMap.WebtoolsSqlType}
-
${javaName.name}
- <#if javaName.description?has_content> -
${javaName.description}
- - <#if javaName.encrypted> -
[${uiLabelMap.WebtoolsEncrypted}]
- -
${javaName.colName}${javaName.type}${javaName.javaType}${javaName.sqlType}${uiLabelMap.WebtoolsNotFound}${uiLabelMap.WebtoolsNotFound}

${uiLabelMap.WebtoolsRelation}${uiLabelMap.WebtoolsRelationType}
- <#if relation.title?has_content>${relation.title} ${relation.relEntity} - <#if relation.fkName?has_content> -
${uiLabelMap.WebtoolsFKName}: ${relation.fkName} - - <#if relation.description?has_content> -
${relation.description} - -
- ${relation.type}: - <#if relation.length == 3> -   - - <#if relation.keysList?has_content> - <#list relation.keysList as keyList> -
  ${keyList.row})  - <#if keyList.fieldName == keyList.relFieldName> - ${keyList.fieldName} - <#else> - ${keyList.fieldName} : ${keyList.relFieldName} - - - -

${uiLabelMap.WebtoolsIndexName}${uiLabelMap.WebtoolsIndexFieldList}
${index.name} - <#list index.fieldNameList as fieldName> - ${fieldName} - -
-
- <#assign numberShowed = numberShowed + 1> - - -
-

- ${uiLabelMap.WebtoolsEntityDisplayed}: ${numberShowed} -
- - Index: framework/webtools/webapp/webtools/entity/EntityRefReport.fo.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntityRefReport.fo.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntityRefReport.fo.ftl (nonexistent) @@ -1,208 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<#escape x as x?xml> - - - - - - - - - - <#-- bookmark section --> - - <#list packagesList as package> - <#assign packageName = package.packageName/> - - ${packageName} - <#list package.entitiesList as entity> - - ${entity.entityName} - - - - - - - <#-- report section --> - <#list packagesList as package> - <#assign packageName = package.packageName/> - <#assign newPackage = true/> - <#list package.entitiesList as entity> - - - <#-- header --> - - - ${uiLabelMap.WebtoolsEntityReference} - - - ${packageName} - - - ${entity.entityName}<#if entity.plainTableName?has_content> | ${uiLabelMap.WebtoolsTable}: ${entity.plainTableName} - - <#if entity.description?has_content && !entity.description.equalsIgnoreCase("NONE")> - ${entity.description} - - <#if entity.location?has_content> - ${entity.location} - - - - <#-- footer --> - - Copyright (c) 2001-${nowTimestamp?string("yyyy")} The Apache Software Foundation - ${uiLabelMap.CommonPage} - - - <#-- body --> - - <#if newPackage> - - <#assign newPackage = false/> - - - <#-- entity fields --> - - - - - - - - - ${uiLabelMap.WebtoolsJavaName} - ${uiLabelMap.WebtoolsDbName} - ${uiLabelMap.WebtoolsFieldType} - ${uiLabelMap.WebtoolsJavaType} - ${uiLabelMap.WebtoolsSqlType} - - - - <#list entity.javaNameList as javaName> - - - ${javaName.name}<#if javaName.isPk> (pk) - <#if javaName.description?has_content> - ${javaName.description} - - <#if javaName.encrypted> - [${uiLabelMap.WebtoolsEncrypted}] - - - - ${javaName.colName} - - - ${javaName.type} - - - ${javaName.javaType?default(uiLabelMap.WebtoolsNotFound)} - - - ${javaName.sqlType?default(uiLabelMap.WebtoolsNotFound)} - - - - - - <#if entity.relationsList?has_content> - <#-- entity relations --> - - - - - - ${uiLabelMap.WebtoolsRelation} - ${uiLabelMap.WebtoolsRelationType} - - - - <#list entity.relationsList as relation> - - - <#if relation.title?has_content>${relation.title} ${relation.relEntity} - <#if relation.fkName?has_content> - ${uiLabelMap.WebtoolsFKName}: ${relation.fkName} - - <#if relation.description?has_content> - ${relation.description} - - - - - ${relation.type}: - <#if relation.keysList?has_content> - <#list relation.keysList as keyList> - ${keyList.row} - <#if keyList.fieldName == keyList.relFieldName> - ${keyList.fieldName} - <#else> - ${keyList.fieldName} : ${keyList.relFieldName} - - - - - - - - - - - <#if entity.indexList?has_content> - <#-- entity indexes --> - - - - - - ${uiLabelMap.WebtoolsIndexName} - ${uiLabelMap.WebtoolsIndexFieldList} - - - - <#list entity.indexList as index> - - - ${index.name} - - - - <#list index.fieldNameList as fieldName> - ${fieldName} - - - - - - - - - - - - - - Index: framework/webtools/webapp/webtools/entity/EntitySQLProcessor.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/EntitySQLProcessor.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/EntitySQLProcessor.ftl (nonexistent) @@ -1,53 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -
-
-
    -
  • ${uiLabelMap.WebtoolsResults}
  • -
-
-
-
- <#if resultMessage?has_content> - ${resultMessage} -
- - - <#if columns?has_content> - - - <#list columns as column> - - - - <#if records?has_content> - <#assign alt_row = false> - <#list records as record> - class="alternate-row" > - <#list record as field> - - - - <#assign alt_row = !alt_row> - - -
${column}
${field!}
- -
-
Index: framework/webtools/webapp/webtools/entity/FindGeneric.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/FindGeneric.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/FindGeneric.ftl (nonexistent) @@ -1,42 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -
- - - - - - - - - - <#list fieldList as field> - - - - - - - - - - - -
${uiLabelMap.WebtoolsFieldName}${uiLabelMap.WebtoolsPk}${uiLabelMap.WebtoolsFieldType} 
${field.name}<#if field.isPk == 'Y'>*${field.javaType}, ${field.sqlType}

${uiLabelMap.WebtoolsToFindAll} ${entityName}, ${uiLabelMap.WebtoolsLeaveAllEntriesBlank}

-
Index: framework/webtools/webapp/webtools/entity/ListGeneric.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/ListGeneric.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/ListGeneric.ftl (nonexistent) @@ -1,57 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - <#if (arraySize > 0)> - <#assign commonUrl="FindGeneric?${curFindString}&searchOptions_collapsed=${(parameters.searchOptions_collapsed)?default(\"false\")}&"/> - <@htmlTemplate.nextPrev commonUrl=commonUrl listSize=arraySize viewSize=viewSize viewIndex=viewIndex highIndex=highIndex commonDisplaying=commonDisplaying/> - - - - - <#list fieldList as field> - - - - <#if resultPartialList?has_content> - <#assign alt_row = false> - <#list records as record> - class="alternate-row"> - - <#list fieldList as field> - - <#-- --> - - - <#assign alt_row = !alt_row> - - <#else> - - - - -
 ${field.name}
- ${uiLabelMap.CommonView} - <#if hasDeletePermission == 'Y'> - ${uiLabelMap.CommonDelete} - - ${Static["org.ofbiz.base.util.UtilFormatOut"].makeString(record.fields.get(field.name))}${record.fields.get(field.name)!?string}
-

${uiLabelMap.WebtoolsNoEntityRecordsFound} ${entityName}.

-
- <#if (arraySize > 0)> - <@htmlTemplate.nextPrev commonUrl=commonUrl listSize=arraySize viewSize=viewSize viewIndex=viewIndex highIndex=highIndex /> - Index: framework/webtools/webapp/webtools/entity/ProgramExport.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/ProgramExport.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/ProgramExport.ftl (nonexistent) @@ -1,36 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - - -
-
-
-

${uiLabelMap.WebtoolsEntityXMLRepresentation}

-
-
-

- <#if xmlDoc?has_content> - ${Static["org.ofbiz.base.util.UtilXml"].writeXmlDocument(xmlDoc)?replace("\n", "
")?replace(" ", "    ")} - -

-
-
-
-
- Index: framework/webtools/webapp/webtools/entity/ViewGeneric.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/ViewGeneric.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/ViewGeneric.ftl (nonexistent) @@ -1,281 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<#assign enableEdit = parameters.enableEdit?default("false")> - - -
-
-
    -
  • ${uiLabelMap.WebtoolsViewValue}
  • -
-
-
-
-

${uiLabelMap.WebtoolsForEntity}: ${entityName}

-

${uiLabelMap.WebtoolsWithPk}: ${findByPk}

-
-
- ${uiLabelMap.WebtoolsBackToFindScreen} - <#if enableEdit = "false"> - <#if hasCreatePermission> - ${uiLabelMap.CommonCreateNew} - ${uiLabelMap.CommonEdit} - - <#if value?has_content> - <#if hasDeletePermission> - ${uiLabelMap.WebtoolsDeleteThisValue} - - - -
- <#if value?has_content> -
-

${uiLabelMap.CommonView}

- -
-
- -
-
-

${uiLabelMap.WebtoolsEntityCurrentValue}

-
- <#if value?has_content> - <#assign alt_row = false> - - <#list fields as field> - class="alternate-row"> - - - - <#assign alt_row = !alt_row> - -
${field.name}${field.value}
- <#else> - ${uiLabelMap.WebtoolsSpecifiedEntity1} ${entityName} ${uiLabelMap.WebtoolsSpecifiedEntity2}. - -
- <#if enableEdit = "true"> - <#if hasUpdatePermission || hasCreatePermission> - <#assign alt_row = false> -
-
-

${uiLabelMap.WebtoolsEntityEditValue}

-
- <#if pkNotFound> -

${uiLabelMap.WebtoolsEntityName} ${entityName} ${uiLabelMap.WebtoolsWithPk} ${findByPk} ${uiLabelMap.WebtoolsSpecifiedEntity2}.

- -
- <#assign showFields = true> - <#assign alt_row = false> - - <#if value?has_content> - <#if hasUpdatePermission> - <#if newFieldPkList?has_content> - - <#list newFieldPkList as field> - class="alternate-row"> - - - - <#assign alt_row = !alt_row> - - - <#else> - ${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName} - <#assign showFields = false> - - <#else> - <#if hasCreatePermission> - <#if newFieldPkList?has_content> -

${uiLabelMap.WebtoolsYouMayCreateAnEntity}

- - <#list newFieldPkList as field> - class="alternate-row"> - - - - <#assign alt_row = !alt_row> - - - <#else> -

${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName}

- <#assign showFields = false> - - - <#if showFields> - <#if newFieldNoPkList?has_content> - <#assign alt_row = false> - <#list newFieldNoPkList as field> - class="alternate-row"> - - - - <#assign alt_row = !alt_row> - - <#if value?has_content> - <#assign button = "${uiLabelMap.CommonUpdate}"> - <#else> - <#assign button = "${uiLabelMap.CommonCreate}"> - - class="alternate-row"> - - - - - -
${field.name} - - ${field.value} -
${field.name} - <#if field.fieldType == 'DateTime'> - ${uiLabelMap.CommonFormatDateTime}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - <#elseif field.fieldType == 'Date'> - ${uiLabelMap.CommonFormatDate}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - <#elseif field.fieldType == 'Time'> - ${uiLabelMap.CommonFormatTime} - <#elseif field.fieldType == 'Integer'> - - <#elseif field.fieldType == 'Long'> - - <#elseif field.fieldType == 'Double'> - - <#elseif field.fieldType == 'Float'> - - <#elseif field.fieldType == 'StringOneRow'> - - <#elseif field.fieldType == 'String'> - - <#elseif field.fieldType == 'Textarea'> - - <#else> - - -
${field.name} - <#if field.fieldType == 'DateTime'> - ${uiLabelMap.CommonFormatDateTime}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - <#elseif field.fieldType == 'Date'> - ${uiLabelMap.CommonFormatDate}<@htmlTemplate.renderDateTimeField name="${field.name}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${field.value}" size="25" maxlength="30" id="${field.name}" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> - <#elseif field.fieldType == 'Time'> - ${uiLabelMap.CommonFormatTime} - <#elseif field.fieldType == 'Integer'> - - <#elseif field.fieldType == 'Long'> - - <#elseif field.fieldType == 'Double'> - - <#elseif field.fieldType == 'Float'> - - <#elseif field.fieldType == 'StringOneRow'> - - <#elseif field.fieldType == 'String'> - - <#elseif field.fieldType == 'Textarea'> - - <#else> - - -
  - - ${uiLabelMap.CommonCancel} -
-
-
- - - <#if relationFieldList?has_content> - <#list relationFieldList as relation> -
-
- -
-
- <#if relation.valueRelated?has_content> - - <#assign alt_row = false> - class="alternate-row"> - - - - <#list relation.relatedFieldsList as relatedField> - class="alternate-row"> - - - - <#assign alt_row = !alt_row> - -
${uiLabelMap.WebtoolsPk}${relation.valueRelatedPk}
${relatedField.name}${relatedField.value}
- <#else> - <#if "one" = relation.type> - ${uiLabelMap.WebtoolsNoValueFoundFor} ${relation.title}${relation.relatedTable}. - <#else/> - ${uiLabelMap.CommonFind} - - -
- - -
-
-
-

${uiLabelMap.WebtoolsEntityXMLRepresentation}

-
-
-

- <#if value?has_content> - <#assign valueXmlDoc = Static["org.ofbiz.entity.GenericValue"].makeXmlDocument([value]) /> - ${Static["org.ofbiz.base.util.UtilXml"].writeXmlDocument(valueXmlDoc)?replace("\n", "
")?replace(" ", "    ")} - -

-
-
-
-
Index: framework/webtools/webapp/webtools/entity/ViewRelations.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/ViewRelations.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/ViewRelations.ftl (nonexistent) @@ -1,63 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -
-
-
    -
  • ${uiLabelMap.WebtoolsRelations}
  • -
-
-
-
- <#if hasViewPermission> -
-

${uiLabelMap.WebtoolsForEntity}: ${entityName}

-
- -
- - - - - - - - - <#assign alt_row = false> - <#list relations as relation> - class="alternate-row"> - - - - - - - <#assign alt_row = !alt_row> - -
${uiLabelMap.WebtoolsTitle}${uiLabelMap.WebtoolsRelatedEntity}${uiLabelMap.WebtoolsRelationType}${uiLabelMap.WebtoolsFKName}${uiLabelMap.WebtoolsFieldsList}
${relation.title}${relation.relEntityName}${relation.type}${relation.fkName} - <#list relation.relFields as field> - ${field.fieldName} -> ${field.relFieldName}
- -
- <#else> -

${uiLabelMap.WebtoolsEntityCreatePermissionError} ${entityName} ${plainTableName}.

- -
-
Index: framework/webtools/webapp/webtools/entity/xmldsdump.ftl =================================================================== --- framework/webtools/webapp/webtools/entity/xmldsdump.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/entity/xmldsdump.ftl (nonexistent) @@ -1,130 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<#if tobrowser?? && tobrowser> -

${uiLabelMap.WebtoolsExportFromDataSource}

-
-

This page can be used to export data from the database. The exported documents will have a root tag of "<entity-engine-xml>".

-
-<#if security.hasPermission("ENTITY_MAINT", session)> - Click Here to Get Data (or save to file) -<#else> -
You do not have permission to use this page (ENTITY_MAINT needed)
- -<#else> -<#macro displayButtonBar> - - - -
${uiLabelMap.PageTitleEntityExport}
-

${uiLabelMap.WebtoolsXMLExportInfo}

-
- -<#if security.hasPermission("ENTITY_MAINT", session)> -

${uiLabelMap.WebtoolsResults}:

- <#if parameters.filename?has_content && (numberOfEntities?number > 0)> -

${uiLabelMap.WebtoolsWroteXMLForAllDataIn}

-

${uiLabelMap.WebtoolsWroteNRecordsToXMLFile}

- <#elseif parameters.outpath?has_content && (numberOfEntities?number > 0)> - <#list results as result> -

${result}

- - <#else> -

${uiLabelMap.WebtoolsNoFilenameSpecified}

- - -
- -

${uiLabelMap.WebtoolsExport}:

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
${uiLabelMap.WebtoolsOutputDirectory}
${uiLabelMap.WebtoolsMaxRecordsPerFile}
${uiLabelMap.WebtoolsSingleFilename}
${uiLabelMap.WebtoolsRecordsUpdatedSince} - <@htmlTemplate.renderDateTimeField name="entityFrom" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityFrom1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> -
${uiLabelMap.WebtoolsRecordsUpdatedBefore} - <@htmlTemplate.renderDateTimeField name="entityThru" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="entityThru1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> -
${StringUtil.wrapString(uiLabelMap.WebtoolsOutToBrowser)} checked="checked" />
-
-

${uiLabelMap.WebtoolsEntityNames}:

- <@displayButtonBar/> -
${uiLabelMap.WebtoolsEntitySyncDump}: - -
- ${uiLabelMap.WebtoolsPreConfiguredSet}: - -
- - - - <#assign entCount = 0> - <#assign checkAll = parameters.checkAll?default("false")> - <#list modelEntities as modelEntity> - <#if entCount % 3 == 0 && entCount != 0> - - - <#assign entCount = entCount + 1> - <#assign check = checkAll/> - <#if checkAll == "true" && modelEntity.getClass().getName() == "org.ofbiz.entity.model.ModelViewEntity"> - <#assign check = "false"/> - - <#assign curEntityName = modelEntity.getEntityName()/> - - - -
checked="checked"/>${curEntityName}
- - <@displayButtonBar/> -
-<#else> -
${uiLabelMap.WebtoolsPermissionMaint}
- - \ No newline at end of file Index: framework/webtools/webapp/webtools/main.ftl =================================================================== --- framework/webtools/webapp/webtools/main.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/main.ftl (nonexistent) @@ -1,120 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -
-
-
    -
  • ${uiLabelMap.WebtoolsMainPage}
  • -
  • ${delegator.getDelegatorName()}
  • -
-
-
-
- <#if !userLogin?has_content> -
${uiLabelMap.WebtoolsForSomethingInteresting}.
-
-
${uiLabelMap.WebtoolsNoteAntRunInstall}
-
- - - <#if userLogin?has_content> - - -
-
Index: framework/webtools/webapp/webtools/ping.ftl =================================================================== --- framework/webtools/webapp/webtools/ping.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/ping.ftl (nonexistent) @@ -1,21 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -${requestAttributes._ERROR_MESSAGE_!} -${requestAttributes.message!} \ No newline at end of file Index: framework/webtools/webapp/webtools/showDateTime.ftl =================================================================== --- framework/webtools/webapp/webtools/showDateTime.ftl (revision 1738254) +++ framework/webtools/webapp/webtools/showDateTime.ftl (nonexistent) @@ -1,19 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()} \ No newline at end of file